I ditched the recursive function option and used Appwrite CLI + appwrite.json for creating collections and attributes, I didn't like that promises with recursive function looked like callback hell in my case.
Welp, that is so much simpler.
I completely forgot about Appwrite CLI and ended up creating a setup script which uses Appwrite SDK.
I avoided the callback hell using async await.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks!
I ditched the recursive function option and used
Appwrite CLI + appwrite.json
for creating collections and attributes, I didn't like that promises with recursive function looked like callback hell in my case.Welp, that is so much simpler.
I completely forgot about Appwrite CLI and ended up creating a setup script which uses Appwrite SDK.
I avoided the callback hell using async await.