Page Contents
A limit filter limits the number of records returned to the specified number (or less).
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
You can also use stringified JSON format in a REST query.
Node API
{ limit: n }
Where n is the maximum number of results (records) to return.
Examples
Return only the first five query results:
REST
/cars?filter[limit]=5
Cars.find({limit: 5}, function() {
//...
})