Mongodb – Group embedded array of documents only
in MongoDB I want to group an array of documents that is nested in another document without it affecting the parent document. Database: db={ "users": [ { "firstName": "David", "lastName": "Mueller", "messages": [ { "text": "hello", "type": "PERSONAL" }, {…