Skip to content

Instantly share code, notes, and snippets.

@alkampfergit
Created December 18, 2015 11:06
Show Gist options
  • Save alkampfergit/d3cd53082d08cc98af05 to your computer and use it in GitHub Desktop.
Save alkampfergit/d3cd53082d08cc98af05 to your computer and use it in GitHub Desktop.
tags = [];
[1,2,3,4].forEach(function(num)
{
tags.push(''+num);
db.SampleData.insert({
num: NumberInt(num),
tags:tags
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment