Reproduction
- Create a string attribute called
collectionin Appwrite databases - Create a new document using the
node-appwriteSDK and assign any string value to thecollectionattribute - 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
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...