i have locations collection and each user can bookmark some locations.
For that i created an another collection called bookmarks and their i have userID which is a relational attribute with many to one
and a locations attribute which is also a relational attribute with many to many,
so retrieving all the bookmarks for a specific user is not a problem but i have a problem to get a specific bookmarked location if the user clicks on a location in app and see set the ion accordingly if its bookmarked or not
and also want to know how to save and update a location in my collection if a user bookmark a location.
i would be very happy if anybody can give me some suggestion if this approach is good at all and to help me better understand the whole bookmarking a location and the database architecture for it.
Thank you.