LysineOriginal post
Rank 1: Thread
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.
Summary
[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.