DEV Community

Discussion on: Appwrite x DEV Hackathon Help Thread

Collapse
 
gulshanaggarwal profile image
Gulshan Aggarwal • Edited

Help Required!

My one of the document field path is going to be like array of objects, nested objects in the image shown below but I'm confused is this possible with appwrite because appwrite only supports attributes such as string ,float, integer, email, ip, enum, boolean & url.

data field

Collapse
 
gewenyu99 profile image
Vincent Ge

You have a few options, document attributes can be made into arrays, or you can save your JSON as a string.

These wouldn't result in queryable data, because querying unstructure data is terrible for performance.

If you want to create something like this that must be queried, creative relational DB design allows you achieve much the same.

Collapse
 
gulshanaggarwal profile image
Gulshan Aggarwal • Edited

It means it's not possible with Appwrite ? Thanks for the detailed solution but now I have decided to use Firebase for database and Appwrite only for login service in my current project.