Search code examples
javascriptdexie

In dexie.js how can I obtain all records from a table?


In dexie.js, is there a way to obtain all records from a table?

Currently I am using:

dbTable.filter(() => true).then( ... )

It works but I am not sure, whether it's the right way.


Solution

  • db.table("tableName").toArray().then( ... )