Skip to content

Instantly share code, notes, and snippets.

@JeffML
Created January 7, 2017 22:10
Show Gist options
  • Save JeffML/81f0a8d439f6f379f1c444e953d1a298 to your computer and use it in GitHub Desktop.
Save JeffML/81f0a8d439f6f379f1c444e953d1a298 to your computer and use it in GitHub Desktop.
var count = 0;
_.each(iceCreamChoices, function(ic) {
_.each(toppingChoices, function(tp) {
_.each(syrupChoices, function(sy) {
//allChoices.push([ic,tp,sy]);
db.post({choice: [ic,tp,sy]}, function(err, doc){
if (err) console.error(err);
else console.log(`stored ${++count}`);
});
})
})
});
console.log('done??');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment