Unwind the _id field of a mogodb aggregation stage
I want to unwind a group of fields but seems like unwind doesn’t work on _id field. I want to unwind the output because I want to write it in a new collection. Here is an example showing what I want to do: Some data: db.test.insertOne({A: "A1", B: "B1", num:1}) db.test.insertOne({A: "A2", B: "B2", num:2})… Read More Unwind the _id field of a mogodb aggregation stage