Inserting Documents in the Collection
Inserting only one document at a time
db.collection.insertOne(document)
Inserting more than one document at a time
db.collection.insertMany([,document_1, document_2.....,]),
Defining, Creating and Dropping a MongoDB collection
MongoDB, the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based on the table-like relational database structure but provides an altogether different mechanism for storage and retrieval of data.
Contact Us