Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb insertmany

#simple cli: (u can enhance by error control via inner lambda)

var data = [{"uid":1},{"uid":2}]

db.getCollection("collectionName").insertMany(data)
 
PREVIOUS NEXT
Tagged: #mongodb #insertmany
ADD COMMENT
Topic
Name
7+2 =