The skip argument lets you specify a number of results to skip in your result set.
?where={<query conditions>}&skip=<positive integer>
Examples
For example, if you have a result set of 200, and you specify skip=100
, you would receive results 101-200.
GET /accounts/?paths[]=name&skip=2
{
"data": [
{
"_id": "507f191e810c19729de860ea",
"name": {
"first": "Jane",
"last": "Svenson"
},
"object": "account"
}
],
"hasMore": false,
"object": "list"
}
/* if the full result set was
[
{
"_id": "507f1f77bcf86cd799439011",
"name": {
"first": "John",
"last": "Smith"
},
"object": "account"
},
{
"_id": "55ff9db67a00a89c14aa31a6",
"name": {
"first": "Stan",
"last": "Smith"
},
"object": "account"
},
{
"_id": "507f191e810c19729de860ea",
"name": {
"first": "Jane",
"last": "Svenson"
},
"object": "account"
}
]
*/
Limitations of paging with skipPaging using
skip
should only be used for small result sets of a few hundred or less. For paging larger result sets, see Paging