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

What does insertMany return that lets you map back to the documents you inserted?

const res = await db.collection("users").insertMany([ { name: "Ann" }, { name: "Bob" }, ]); console.log(res.insertedIds);