How to realize grouping group results in MongoDB and then store them into mongo database? ? ? ?

  mongodb, question

After passing through the aggregate function in mongo: group (), the DBObject object is returned. what should I do if I want to store it in another set? ? ?

Later, I knew for myself that it was ok to put it directly into a document and insert it into the collection. .