I'm trying to store an attribute in my document that contains an array of objects (JSON). Each object has multiple properties like name, email, and locked. For example:
{
"students": [
{ "name": "John", "email": "john@example.com", "locked": false },
{ "name": "Jane", "email": "jane@example.com", "locked": true }
]
}
I am currently using Appwrite for my project, and I want to confirm if it's possible to store an array of objects (JSON) in a field. If this isn't supported, what would be the best way to structure this kind of data within Appwrite?
TL;DR
Appwrite does not directly support storing an array of JSON objects within a document. A workaround is to stringify the objects, store them as strings, and mark the attribute as an array.