microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
691 stars 165 forks source link

Invoke-MgGraphRequest should have FollowRelLink parameter #2000

Open AspenForester opened 1 year ago

AspenForester commented 1 year ago

As a user accessing large collections of graph objects, I want Invoke-MgGraphRequest to have -FollowRelLink and -MaximumFollowRelLink parameters like Invoke-RESTMethod does so that I don't have to cook up my own pagination handlers. Ideally this support would extend to the responses from the "Batch" endpoint as well.

CarolKigoonya commented 7 months ago

Return @odata.nextLink for Invoke-MgGraphRequest Expected experience URI to include the page size you need e.g. "https://graph.microsoft.com/v1.0/users?$top=5" Response to include "@odata.nextLink" to get the next pages.

Reference: https://learn.microsoft.com/en-us/graph/paging?tabs=powershell

joshtransient commented 2 months ago

Any movement on this? Also looking to make writing scripts that $batch a little easier