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
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...