keithwhor / nodal

API Services Made Easy With Node.js
http://www.nodaljs.com/
MIT License
4.51k stars 209 forks source link

Limit results on a route #243

Closed fabiomig closed 8 years ago

fabiomig commented 8 years ago

How do change the default limit on route?

I've inserted 100 rows and if i do a get request to /v1/foo i see all the results on the page by default.

How do i change that behaviour?

Regards Fábio

keithwhor commented 8 years ago

Model.query().limit(10).end(...) :)