Chinese Documentation : Skip过滤器

skip过滤器忽略掉指定数目的记录结果。这个一般用于分页。

skip的别名是offset。

Icon

Methods of models in the AngularJS client have a different signature than those of the Node API. For more information, see AngularJS SDK API.

REST API

?filter=[skip]=n
可以在REST query中使用stringified JSON format

Node

{ skip: n }

n是要忽略的记录数目。

例子

下面的例子忽略前20条记录,返回10条记录;简单的说就是返回第21条到第30条记录:

/cars?filter[limit]=10&filter[skip]=20