Hello @Clyde Noronha ,
Using ParentLink:/FolderName
, along with Path
should be able to retrieve driveItems from a parent folder within a document library.
A similar thread graph-api-search-for-driveitems-within-a-drive-ret.html.
POST https://graph.microsoft.com/v1.0/search/query
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "searchstring AND Path:https://contoso.sharepoint.com/sites/siteurl/Shared Documents AND ParentLink:/FolderName"
}
}
]
}
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".