insertMany
Add several documents in one call.
Example
db.users.insertMany([
{ name: "Kofi", age: 22 },
{ name: "Zara", age: 28 }
])Exercise
Add many.
db.users.([])
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.