CRUD Operations

Inserting a new document in MongoDB

Multiple Documents can also be inserted at a time, We can do this by passing a list of documents to the insert command

db.inspections.insert([
	{"name" : "value"},
	{"name" : "value"},
	{"name" : "value"},	
])
db.inspections.insert([
	{"_id" : "value"},
	{"_id" : "value"},
	{"_id" : "value2"},	
], {"ordered": false})

Update Operations