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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...