Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

Does Mongoose v3.6+ support batch insert now? I've searched for a few minutes but anything matching this query is a couple of years old and the answer was an unequivocal no.

1 Answer

0 votes
by (106k points)

To insert batch in Mongoose you can perform bulk insert using mongoDB shell using inserting the values in an array.

db.collection.insert([{values},{values},{values},{values}]);

Related questions

0 votes
1 answer
0 votes
1 answer
asked Oct 18, 2019 in Web Technology by Sammy (47.6k points)
0 votes
2 answers
0 votes
2 answers

Browse Categories

...