Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which pipeline can produce this JSON document in output?
db.mycollection.aggregate([ {$group : {"_id" : "$movie", "val" : {$sum : 1}}} ])
db.mycollection.aggregate([ {$group : {"_id" : "movie", "res" : {$sum : 1}}} ])
db.mycollection.aggregate([ {$group : {"_id" : "movie", "val" : {$sum : 1}}} ])
db.mycollection.aggregate([ {$group : {"_id" : "$movie", "res" : {$sum : 1}}} ])
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!