Page Contents

limit filter limits the number of records returned to the specified number (or less).

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

Node API

Cars.find({limit: 5},  function() {
    //...
})