Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between insert() and insertOne()?



What is the difference between insert() and insertOne()?..

Answer / Santosh Kumar Kanhiya

insertOne() inserts a single document into the database, while insert() can insert multiple documents but it returns an array with all inserted ids. If only one document is inserted, both methods return the same result.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

How mongodb is better than other sql server databases?

1 Answers  


What is orm mongodb?

1 Answers  


What is mongodb query language?

1 Answers  


Is mongodb support replication?

1 Answers  


When using replication, can some members use journaling and others not?

1 Answers  


Why 32 bit version of mongodb are not preferred ?

1 Answers  


Does mongodb support sql server?

1 Answers  


What query language does mongodb use?

1 Answers  


Can you edit long shell operations with an external text editor?

1 Answers  


What is the difference between mongodb and couchdb?

1 Answers  


Why it is called mongodb?

1 Answers  


Is it possible to remove old files in the movechunk directory?

1 Answers  


Categories