How to organise a many to many relationship in MongoDB

后端 未结 3 2052
鱼传尺愫
鱼传尺愫 2020-12-01 01:22

I have two tables/collections; Users and Groups. A user can be a member of any number of groups and a user can also be an owner of any number of groups. In a relational data

3条回答
  •  -上瘾入骨i
    2020-12-01 02:04

    In-case anyone interested, I just bumped into a very good article posted in mongoDB blog. 6 Rules of Thumb for MongoDB Schema Design. There are 3 parts in this article, after reading all 3 you'll have a good understanding.

提交回复
热议问题