Back

Any helper functionality to create a Database/Collection/Attributes using a schema?

  • 1
  • Databases
CodePanda
6 Jun, 2024, 14:11

I couldn't find any - but wanted to check if there is any helper functionality to read schema configuration (say some simeple JSON or any other format) and create DB/Collections/Attributes etc.?

It is not hard to write one - but it would be helpful if there is a tested/trusted one that new comers can use without having to worry about making mistakes.

TL;DR
Developers are looking for a helper functionality to create Database/Collections/Attributes from a schema in a simple format like JSON. One solution suggested is using the appwrite cli to generate a JSON file mirroring the project setup. No premade tools were found, but developers are encouraged to create their own or verify existing solutions on trusted sources.
Kenny
6 Jun, 2024, 14:52

Sure, using the appwrite cli you can get a json file that mirrors the setup of your project.

https://appwrite.io/docs/tooling/command-line/deployment#appwrite-json

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more