From the MongoDB shell, how do you create a new document in the customers collection?

  •  db.customers.add({name: “Bob”})
  •  db.customers.save({name: “Bob”})
  •  db.customers.create({name: “Bob”})
  •  db.customers.new({name: “Bob”})

Leave a Reply

Your email address will not be published. Required fields are marked *