-
Continuation of the discussion in #880 The implementation details of the In the example given in the PR to demonstrate the proper functionality of the If one were doing manual page calculations for a number of reasons including not using Entity Framework - then having precise control over each of the values is important. For example - cosmos query:
or SQL Query:
You would most likely be replacing the In the original issue - I had stated that this was a regression from previous functionality and to a point - this is the truth. We had implementations in .net 2.1 and 3.1 that had this very bit of functionality available and when moving to OData 7.x - something broke in the process and we had thought we solved the issue, but we had not fully corrected the issue until we discovered that the next link generation functionality was intentionally omitting the property. Proposed Solution 1We leave the PR as is and allow for variable $top values specified by the client. Proposed Solution 2Further examine the possible scenarios where this would not be appropriate - rather - have an opt-in situation where the developer must make an intentional decision to enable the feature. This may mean that the following is true:
ReferencesThe $top system query option specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. The odata.nextLink annotation indicates that a response is only a subset of the requested collection of entities or collection of entity references. It contains a URL that allows retrieving the next subset of the requested collection. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@tsharp thanks for opening this up for discussion. If you want to control the page size from the client, maybe what you're looking for is the When using It is possible that some MS Graph APIs have in implementation that doesn't match the protocol in the spec. However, the current implementation of the library does match the spec and is well documented. I don't think it makes sense at this point to introduce this new feature in the library for this use case because it's not supported by the spec and it may introduce unexpected behaviour. If the suggestion doesn't work for your use case, then I think it would be appropriate to consider customizing the next link or skip token handler since this is a custom requirement. |
Beta Was this translation helpful? Give feedback.
<argument removed - it's pointless>
I suppose that I'll continue to use my own implementation and hope that it doesn't break again with the next upgrade.