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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here π I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...