marsdb icon indicating copy to clipboard operation
marsdb copied to clipboard

Is there a way to make Collection.find() return a promise (like the other Collection operations)?

Open nickcox opened this issue 8 years ago • 0 comments

const Collection = require('marsdb').Collection
const db = new Collection('test')
db.find()
  .catch(error => console.log(error))

Fails with:

TypeError: db.find(...).catch is not a function

It seems I have a CursorObservable rather than a promise.

nickcox avatar Jul 13 '16 01:07 nickcox