Hi, trying to sort the attribs on a freshly created collection, I used the CLI appwrite deploy collection command but I ended with a new collection much more messy than what I created at first! I expected the attributes to be sorted as they appear in my appwrite.json file. Is there a way to achieve this? Thx.
You'll have to write a script using a server SDK
Or fork the CLI lol
You might also want to add a 👍 to this issue: https://github.com/appwrite/sdk-for-cli/issues/79
The reason why is all the attributes are created at once: https://github.com/appwrite/sdk-for-cli/blob/ae7f9fecbbe5cc0cc702e878fd48cc8559fa18b2/lib/commands/deploy.js#L640 and so when they actually get created or finish creating is "random"
OK thx, I suspected something with the asynchronous way of creating the attribs... 🙂 Well, I think I will stick with the randomness of my initial attribs as they are less random than what I ended up! 🙂
[SOLVED] CLI deploy = mess in the attribs
I submitted a PR with a --preserve option for deploy collection.
Recommended threads
- I can't share code between functions
Operating System: MacOS Appwrite Version: self-hosted 1.8.1 Appwrite CLI Version: 13.2.1 I want to split code up to share it between my functions. At the momen...
- Project Limit Issue on Education Plan
Hello Appwrite Team! I have successfully activated the GitHub Student Developer Pack on my account, and my billing dashboard confirms I have Pro resources (2TB ...
- Golang for backend
hi coders! ,I am new to golang and backend as a whole, I found golang pretty easy to learn due to my previous knowledge in CPP and python, the syntax felt prett...