sushiOriginal post
React Developer
I am encountering an issue when trying to fetch a document using the database.getDocument method in the React Native SDK. Specifically, I am attempting to retrieve a document with a specific documentId, but the following error is occurring:
The document with the requested ID could not be found.
Here is the code where I am calling the database.getDocument method:
.database.getDocument(databaseId, collectionId, documentId, queries);
Summary
Issue: Error "The document with the requested ID could not be found" when fetching document using database.getDocument method in React Native SDK.
Solution: Check the accuracy of the documentId being passed to the database.getDocument method.