Mongodb – Combining Mongo query results into a single document
I have a Mongo collection as such: db.items.find({}): [{ "_id": { "$oid": "64e929386a2bff904d86118a" }, "name": "Copies", "legacy_id": 181 }, { "_id": { "$oid": "64e929386a2bff904d86118b" }, "name": "Temp", "legacy_id": 182 }, { "_id": { "$oid": "64e929386a2bff904d86118c" }, "name": "Test", "legacy_id": 183…