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
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...