
Reproduction
- Create a string attribute called
collection
in Appwrite databases - Create a new document using the
node-appwrite
SDK and assign any string value to thecollection
attribute - Retrieve the same document immediately, or inspect its value in Appwrite console. The value is always
undefined
. - Rename the attribute to something else, such as
collectionId
- Fields that are previously undefined now have their original value
Expected behavior
The attribute key collection
should work like any other key. If it is somehow a special key, it should be stated in documentation and attempts to create such a key should be blocked.
TL;DR
[Bug] The attribute key 'collection' is unusable in Appwrite Databases.
Developers encounter issues when creating a 'collection' attribute, as its value becomes 'undefined' when retrieved. Renaming the attribute fixes the problem, suggesting an issue with using 'collection' as a key.
Solution: Rename the attribute to something else like 'collectionId' for it to function properly.Recommended threads
- AppwriteException Network request failed...
I'm watching a react native / expo tutorila that uses Appwrite as it's backend for its database. So, in this tutorial, there is implementing the seed functional...
- createDocument not returning result
when making a createDocument call, I am not getting the object created. The DB is updated properly. Is this expected behavior?
- New pricing is mental.......
I have 13 small test projects for different apps. Very little traffic. Paying today $15/month. Do I understand correctly this will be $25+13*$15 = $220 ? So fr...
