Criteria.prototype.skip >= 1.1.0
Purpose
Skip (offset) an amount of records
Syntax
Criteria#skip
(
Numberamount
);
Parameters
amount
- The amount of records to skip
Return values
Criteria
Returns itself
Examples
Skip an amount of records
// Get an instance of the "Page" model
var Page = Model.get('Page');
// Calling "find" on that model without arguments returns a criteria
var criteria = Page.find();
// Skip the first 5 records
criteria.skip(5);
Get records 6 to 10 (paging)
// Set the "page" size by setting a limit
criteria.limit(5);
// And now skip the first page
criteria.skip(5);
Comments