The $top
query parameter is used to limit the number of results returned in a response. When using the $top
parameter, the API may return an empty result set if there are fewer results than the specified limit. To avoid this, you can either increase the limit or omit the $top
parameter altogether.
Non-sense number of results on /me/drives endpoint when pagination parameters are sent
DiGiorgio, Veronica
11
Reputation points
Hello,
we implemented an integration with your endpoint to list drives from Microsoft Graph APIs
This case is happening on a specific tenant and not on other tenants.
In particular, when asking for drives with "$top" less than 11 results, the API behaves returning an empty list and next token that at the end, returns the single entry
While, when calling the API without top, it returns directly the correct result!
Can you please clarify how should we work correctly with this API without wasting resources on empty result set?
Regards,
Veronica
1 answer
Sort by: Most helpful
-
Diya Ahuja 5 Reputation points
2023-06-30T18:08:41.36+00:00