Skip to content

Instantly share code, notes, and snippets.

//Array of trip objects
var trips = [];
db.trips.drop();
db.trips = db.collection('trips');
var counter = 0;
for(var i = 0; i < trips.length; i++){
db.trips.save(trips[i], function(err){