Page Contents
A limit filter limits the maximum number of records a query returns.
Node.js API
{ limit: n }
Where n is the maximum number of results (records) to return.
REST API
filter[limit]=n
You can also use stringified JSON format in a REST query.
Examples
Return only the first five query results:
await orderRepository.find({limit: 5});
/orders?filter[limit]=5
Or stringified JSON format:
/orders?filter={"limit":5}