How does MongoDB design many-to-many relationships

  mongodb, question

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?

  1. List all tags
  2. List all articles and their tags
  3. List all articles under a Tag

Well written, I also think that using the intermediate table to achieve it!