I'm using MS Graph to get all the folders in a mailbox using the following URL:
https://graph.microsoft.com/v1.0/users/{mailbox}/mailFolders
This returns 10 folders. I then use the URL returned in @odata.nextLink to call the API again, repeating this until there are no more. In total I get 39 folders returned.
But, when I look at the mailbox, it has far more than 39 folders. Why is MS Graph not returning them all - they are all under the same parent folder.
I've tried adding ?$top=100 at the end of the inital URL, but it still only returns 39.
Is this a bug in MS Graph ?