How to Project an Element in an Array of Objects in mongoDB for All Documents from a Collection
I have an array of objects in my company collection holding grouped values as follows: "groups" : [ { "id" : "d278c44333", "name" : "group 1" } ], so in mongoDB it would be company > groups > 0 >…