How do I search across all sites using Microsoft Graph?


I want to develop an application that displays a search result. For testing I uploaded a couple of files to the default document library in the root site. I can see these files with the following request:'Test')

However, one of the requirements is that the query should match files regardless of in which site they are stored. As I understand the documentation I should use something like this:'Test')

The query is the same as in the first example but the results are empty.

    "@odata.context": "$metadata#Collection(driveItem)",
    "value": []
1 Reply
best response confirmed by Gabriel Smoljar (Contributor)

It sounds to me like what you're looking for isn't the Graph API, but the Search API.