I'm developping an application that aims to work with java and should allow crud operations on files. I do have an update functionnality that has to work with a library containing more than 5000 documents.
My goal is to retrieve a specific document based on its path. for this I use the property webUrl.
I do make an API call to the following URL
https://graph.microsoft.com/v1.0/sites/{siteId}/lists/{listId}/items?expand=fields,driveItem&$query=webUrl eq 'https://{sharepointUrl}/sites/{siteName} /{listName}/fileName.PDF'
Apparently, i do retrieve all the documents contained in the library. Previously, in a context where i had less than 5000 documents, I could use fields/fileLeafRef.