MongoDB document is a JSon object and is also called as a record or row in MySQL. We can insert any number of documents in collection. There are two methods for inserting documents into collection:
a)insertOne()
b)insertMany
With insertOne() we can insert a single document at a time. It has single parameter which is an object. The object may be embedded data or normalized data model.
db.collectionName.insertOne({key:value})
With insertMany() we can insert multiple document at a time. It has single parameter which is an array object. The object may be embedded data or normalized data model.
db.collectionName.insertMany([
{key:value},
{key:value}])