Collection.eachPrimaryKey()
Syntax
collection.eachPrimaryKey(callback)Parameters
Callback Parameters
Return Value
Remarks
Sample
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.
});