Let's say I have already implement the multi selected dropdown/combo box in React which have a genres and authors for this books, how can I do this on Appwrite? Yes, this is the first time I am going to use Appwrite but I have already implement this on MongoDB. I do have the book collections, which contains an _id, title, authors(have relations to another collection called author) and genres (same as with the authors, which have a collection called genres).
So, the question is can you help me to provide me an insights about this in appwrite like how can I do it in a more logical sense?
The image is only a sample that I have implement on MongoDB and as well as visual representation that I want to do in Appwrite
You can create a many-to-many relationship between books-genres and books-authors. For the drop-downs, just pull the correct collections. You would set the connected Attribute to the $id of the Document to be connected.
Recommended threads
- Middleware
how to make middleware in nextjs appwrite with client side auth?
- Error 400: redirect_uri_mismatch
Hi team, Google OAuth was working fine with our Appwrite Cloud setup until yesterday. We did not change any configuration in Appwrite, Google Cloud, or our cod...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...