How to use count with group by whole document in MongoDB
I have a db like this [ { _id: ObjectId("1"), name: "John Doe", age: 25, address: { street: "123 Main St", city: "New York", state: "NY", zip: "10001" }, images : [ { url: "http://www.example.com/image1.jpg", caption: "Image 1" type: "jpg"…