You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are your thoughts on having a way to specify "unlimited pagination" for routes?
My use case, is that I usually want the default 15 page limit. Yet sometimes, I want all of the records (when I know the response will be a small amount of data).
To do this, I usually say limit: 99999 or something like that, but it feels weird to do it this way!
Maybe we could have a function on the controller that allows unlimited data in the response, and in that case, we can use -1?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What are your thoughts on having a way to specify "unlimited pagination" for routes?
My use case, is that I usually want the default 15 page limit. Yet sometimes, I want all of the records (when I know the response will be a small amount of data).
To do this, I usually say
limit: 99999
or something like that, but it feels weird to do it this way!Maybe we could have a function on the controller that allows unlimited data in the response, and in that case, we can use
-1
?Then the following would return all records:
Beta Was this translation helpful? Give feedback.
All reactions