petersirka / nosql

NoSQL embedded database for small node.js projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this.db.find(...).promise is not a function

ajmas opened this issue · comments

I am trying to use this as a store, but running into issues when trying find entries. Using Typescript.

In my class I have:

this.db = NoSQL.load(path.join(storePath,'/media-catalogue.nosql'));

then I try:

await this.db.find().promise();

This results in:

TypeError: this.db.find(...).promise is not a function

any ideas?