
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
- Session Secret not generating
Hello, im trying to use otp verification in my next js project but appwrite server is sending empty secret. i am attaching code where the error is occuring and ...
- Got server error 500 "general_unknown" w...
My function responds a small ogg audio data, the console showed successful executions, but I got a server error from the client sdk (Android/Kotlin): ```json { ...
- Sites takes a bit longer with better res...
site: devaxis.appwrite.network cc: <@185460546336718859> https://discord.com/channels/564160730845151244/564160731327758347/1407009490745823334 I dont know if ...
