Hello everyone! šš»
I have the following piece of code (client side, Flutter):
TypeScript
databaseId: 'id',
collectionId: 'id',
documentId: '');```
As you might have noticed, I'm passing an empty string as documentId. No such ID exists of course. But yet this code returns a document.
I expect the above code to return an exception. When I pass a random string as ID it indeed throws an exception, as it should be. But not when I pass an empty string (''). š¤
Can anyone confirm that this is indeed a bug in Apprite?
TL;DR
Issue: Passing an empty string as documentId in AppWrite's getDocument function returns a document instead of throwing an exception.
Solution: This behavior is likely a bug in AppWrite. Consider reporting it to the developers for further investigation and resolution.Recommended threads
- I am not getting "to" when email receive...
I am using cloud function to send an email when email received it doesn't have "to" email address. Please see attached image. My cloud function detail: built w...
- Empty listRows() response
Hi there, I'm shehryar, I'm new to react native and appwrite as well, I'm following a tutorial, what's surprising is the listRows({databaseId, tableId, queries}...
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...