Page Contents
This is a community translation into Chinese. For the latest information, see the English version.
Limit 过滤器限制返回的纪录条数。
Warning:
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[limit]=_n_
可以使用 stringified JSON format 做为REST query.
Node API
{limit: _n_}
这里的_n_ 代表返回纪录的最大条数。
例子
只返回5条纪录
REST
/cars?filter[limit]=5
Node API
Cars.find( {limit: 5}, function() { ... } )