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

You accidentally pass an array to insertOne instead of insertMany. What happens?

db.users.insertOne([{ name: "Ann" }, { name: "Bob" }])