msgraph-sdk-design icon indicating copy to clipboard operation
msgraph-sdk-design copied to clipboard

Page Iterator Task - Design improvements

Open nikithauc opened this issue 5 years ago • 2 comments

Please check the links below Example Suggestion

nikithauc avatar Sep 08 '20 22:09 nikithauc

Adding to this - https://github.com/microsoftgraph/msgraph-sdk-serviceissues/issues/38 Currently, the PageIterator works with the value and the @odata.nextLink and the other meta data is not considered. How can the other metadata that is returned in the response be handled in a better way?

nikithauc avatar Dec 09 '20 18:12 nikithauc

I take blame for this. I know better than hiding the entire response envelope. We should consider expanding the PageCollection interface to represent the entire response envelope so that response headers can be accessed. It already has an additional property which should hold all of the other properties not in value and not in the odata.nextlink and odata.deltalink properties.

MIchaelMainer avatar Dec 09 '20 18:12 MIchaelMainer