on 2021 Oct 14 12:08 PM
Hello everyone,
we have a cap in nodejs that, at the user access, the main entity must be filtered based on user profile (a data from SF).
To achieve this we filtered the query result in on("READ") handler but we realized that the query is limited to 20 records but there are many others in table.
Is there a way to get all records of the entity and not only the first 20?
Below the code
Thank you
Kind regards
Claudio
Hey Claudio,
Do you want to get more results in that specific request or all requests made to the entity? For that request you could add the $top parameter to your call. For every request to that service or entity you might annotate it with „@cds.query.limit.default:20“. Raise the 20 to the (reasonable) number of results you want to receive.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.