Examples of many to many relationship?
- Create a topic and associate with a note.
- Query a note and get associated topics.
(several more but just focusing on those for now)
Here is my current schema:
Is using an array of topic ids the correct way to go to make the association? When querying a note, how would I then collect and return the topics? I tried looping through each topic in the topic array and then doing a
get on each topic but that did not work.Any tips or insights would be appreciated!
Thanks!
