marsdb
marsdb copied to clipboard
Is there a way to make Collection.find() return a promise (like the other Collection operations)?
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.