I have tons of attributes to add. is there a way to programmatically do so instead of manually? It's a web app using nodejs/typescript
Sure, you can create databases, collections and attributes entirely programatically.
https://appwrite.io/docs/references/cloud/server-nodejs/databases#create https://appwrite.io/docs/references/cloud/server-nodejs/databases#createCollection https://appwrite.io/docs/references/cloud/server-nodejs/databases#createBooleanAttribute
Are you creating attributes at runtime? If so, why?
no I'm not
in addition to Kenny's suggestion, I would also recommend using the Appwrite CLI to maintain your schema with the appwrite.json
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- Can't connect GitHub — 500 error at the ...
Appwrite Cloud, Pro plan, SFO region. All my Git connections vanished today — Sites and all 15 Functions now show no repository connected. When I try to add a ...