Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDBinsertOne insertManySingle-choice MCQ

You call insertMany in the Node.js driver. What does the returned result give you to map back to each inserted document?

const res = await coll.insertMany([{ name: "A" }, { name: "B" }]); // res.insertedIds === ?