robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















show wiki  show source  compare to current  compare to previous  read  history 


insertMany()


MongoDB Driver Function Reference

insertMany() inserts multiple documents into a collection.



db.<collection>.insertMany(<documents>[, <options>])



Arguments


<collection> The target collection
<documents> An array of BSON documents to insert into the collection
<options> A BOSN document specifying options



Options


{ bypassDocumentValidation: <boolean>,
ordered: <boolean> }



Example


db.employees.insertMany([{ name: "Miller", firstname: "Amanda", age: 29, salary: 680000 },
{ name: "Bower", firstname: "Debora", age: 46, salary: 840000 }]);


Inserts documents into the employees collection.






home | MongoDB Driver Function Reference | MongoDB Driver