-
-
Notifications
You must be signed in to change notification settings - Fork 641
Collection.eachPrimaryKey()
David Fahlander edited this page May 9, 2016
·
2 revisions
Since 1.4.0
collection.eachPrimaryKey(callback)
callback: Function | function (primaryKey) { } |
key: string | Date | number | Array | Found key |
When iteration finish, returned Promise will resolve with undefined, calling any Promise.then() callback.
If operation fails, returned promise will reject, calling any Promise.catch() callback.
db.friends.orderBy('firstName').eachPrimaryKey(function (primaryKey) {
// This callback will be called in the firstName order and provide
// the primary key of the object it refers to.
});
Dexie.js - minimalistic and bullet proof indexedDB library