Hey, We have a project, functions and collections that we want to share between the developers(no data) and allow them to setup the dev environment quickly. What is the best practices around it?
Another question, what is the right way to update schema collection without losing data?
Thanks
For function, the best way would be use github and share functions, for collection there is no easy way, you should create a code to create, update and delete collection based in a schema maybe stored in a json file.
currently there is no way to update schema collection without delete the data previously, I think there is a issue for that topic
Use the CLI to quickly create things like collections and buckets: https://appwrite.io/docs/tooling/command-line/installation.
Thanks, what should we do if we only want to add an attribute or something like that? is it possible to do that with the cli with data lost?
The CLI won't work for that at the moment as it will wipe the data.
If you want to handle updates, you'll need to create scripts
Cool, thanks for the quick reply
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...