skip¶
skip leaves out the first rows of the result. With limit, it pages through a table : page 3 of 10 rows is skip=20&limit=10.
Answer : rows 3, 4 and 5
{
"success": true,
"statusCode": 200,
"data": [
{ "customer_id": 3, "first_name": "Mallory", "last_name": "Brown" },
{ "customer_id": 4, "first_name": "Eve", "last_name": "Mathly" },
{ "customer_id": 5, "first_name": "Eve", "last_name": "Page" }
]
}
- A whole number ;
0or absent skips nothing. - Always add a
sortwhen you page : without an order, the database is free to return the rows in any order and a page may repeat or miss rows. getTotalCount=truegives the total to compute the number of pages.- Inside a
deepitem,skipapplies to the related rows of each parent.