The requirement is:
When the number of comments on an article changes, the cNumber in the article also changes. Can this be achieved by designing a Schema? Articles and comments are two Schema
(Novice to mongodb, sorry for the inaccurate question)
某草草2017-05-17 10:06:09
It’s a database design problem. Shouldn’t cNumber read the number of comments? It doesn’t need to be stored in the article.