Hi, I was using the databases.getDocument but the response i got was like {total: 1, documents: [{}]}. Its like calling the list document function. While checking the docs and from what i have tested earlier, i should be getting just a document object.
Any Idea why this is happening?
Summary
The user is experiencing an issue where the 'getDocument' function is returning a response similar to the 'list documents' function. They are concerned about potential deletion of files and asking if there are any serious issues with the bug. The support representative confirms that this behavior is due to an issue with route matching and provides a link to the related issue on GitHub. The user also mentions that providing an empty string as the document ID returns a response like a list of documents. The support representative acknowledges this and suggests that the behavior should return a single document object instead. No solution is provided in the thread.
SenZi
Rank 3: Container
May 11, 2023, 00:44
It seems like if i provide the document id as a blank text, example: " ", it would return the response like a list documents would
SenZi
Rank 3: Container
May 11, 2023, 00:46
In the docs it says the document id is required, but providing it with an empty sting value returns data....