Skip to content
This repository was archived by the owner on May 19, 2019. It is now read-only.
This repository was archived by the owner on May 19, 2019. It is now read-only.

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

@nickcox

Description

@nickcox
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions