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
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...
- Cannot migrate from Supabase
Hi, I was trying to migrate from Supabase to the Appwrite database. My database had around 190K columns. I tried it twice. Both times, after 2 days, the proce...
- Production down - createExecution return...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...