The API only queries certain number of items, when when no results are found in those items, it returns a nextLink for you to query the next page of items. Keep querying the nextLink provided in the results until it is no longer returned. https://learn.microsoft.com/en-us/graph/paging?tabs=http