For example, articles and Tag can be designed in this way under SQL.
Post: Id Title Tag: Id Name Relation: PostId TagID
So, if you use MongoDB’s idea, how do you design this relationship?
How should these statements be written in terms of queries?
- List all tags
- List all articles and their tags
- List all articles under a Tag
Well written, I also think that using the intermediate table to achieve it!