Is there a way to recursively include the content of the children (grandchild) in one request in the Microsoft Graph API?
I want to query folder /foo/
and also get the content of /foo/baar/
e.g /foo/baar/baz.txt
.
IGraphServiceClient graphClient = GraphServiceClient
.builder()
.authenticationProvider(authProvider)
.buildClient();
IDriveItemCollectionPage children = graphClient
.drives("{drive-id}")
.items("{item-id}")
.children()
.buildRequest()
.expand("children")
.get();
Expanding the query using children
returns a com.microsoft.graph.http.GraphFatalServiceException: Unexpected exception returned from the service.Error code: notSupported
This would significantly enhance the performance of my requests.
Edit: just created a feature request: List children including grandchildren