Loading, please wait...

MongoDB insert operation

Insert Operations-:

 

This insert operation is used to insert document.

 

Syntax-: >db.COLLECTION_NAME.insert(document)

 

Example

 

>db.mycol.insert

 

({

 

   title: 'MongoDB Overview',

 

   description: 'MongoDB is no sql database',

 

   by: 'tutorials link',

 

   url: 'http://www.tutorialslink.com',

 

})