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

You pass an array of documents to insertMany. By default, one document in the middle fails a unique index check. What happens?

db.users.insertMany([doc1, doc2_dup, doc3])