on 04-24-2020 8:53 AM
Hi
I have a application in NodeJS with CAP, but when I make a GET to the entity in .cds file,I only receive 1000 items.
can I remove this limitation for receive all items?
Hi,
In the next version of @sap/cds (very soon to be released) you can annotate your entity with `@cds.query.limit.max` to set the maximum retrieved items.
Then you can use $top=[something <= @cds.query.limit.max].
Best regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest you use $skip and $top. That way you avoid high memory usage on the server side.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.