I was doing a search in bard, but something is not clear to me, one of the answers highlights that with appwrite you can create a collection of several types
select a collection type between "Documents", "JSON" and "Files".
But the question is can I really save json inside an appwrite collection or is it because bard is wrong.
Not sure what collection types are, but collections do not support JSONs, so if you want to save a JSON in an attribute on a collection you would have to stringify it first then parse it when fetching.
Though bard is neat, I think your best bet for this type of information is just looking directly at the documentation.
https://appwrite.io/docs/references/cloud/server-nodejs/databases
When ask information to bard or chatgpt make sure to request information of the latest version, you can pass it the page of the feature you are asking so the information will be more accurate
document = { "name": "Mi documento", "description": "Este es mi primer documento en Appwrite", "data": { "key1": "value1", "key2": "value2" } }
response = client.databases.create_document( database_id="YOUR_DATABASE_ID", collection_id="YOUR_COLLECTION_ID", document=document )
Based on this example, I have to create the attributes for the collection or just insert the data without defining the attributes.
Recommended threads
- DB connection | Got timeout reading comm...
When looking at the logs of `appwrite-mariadb` I'm seeing a lot of: ``` 2026-04-09 7:37:28 10 [Warning] Aborted connection 10 to db: 'appwrite' user: 'appwrit...
- Invalid document structure: Unknown attr...
Environment: Dart version: 3.5.1 dart_appwrite: 13.0.0 I’ve already created the database structure using a Dart function. I can create data records using cloud...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...