Crud service limit constraint behaviour #376
elmalakomar
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi, from my understanding of the service code, your reasoning is correct. Currently it seems there's no manner to customize the default limit value. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi!
I wanted to ask you If I got the correct behavior of the env CRUD_LIMIT_CONSTRAINT_ENABLED.
This variable sets the default limit to 25 records. If you specify in the query another value uses the specified one, but, if you choose a value bigger than 200, you will be truncated to 200 records. This is because the default max limit is 200 and you can modify it with the env CRUD_MAX_LIMIT. Correct?
If I set the env CRUD_LIMIT_CONSTRAINT_ENABLED to false, I don't have any limit at all.
Now there is a question: is there a way to change the default limit? like if I wanted to keep the CRUD_LIMIT_CONSTRAINT_ENABLED set to true but I want to retrieve as default at most 50 items.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions