Skip to content

Instantly share code, notes, and snippets.

@tairov
Last active December 19, 2015 14:59
Show Gist options
  • Save tairov/5973070 to your computer and use it in GitHub Desktop.
Save tairov/5973070 to your computer and use it in GitHub Desktop.
mongodb queries
db.pin.tagtask.find().forEach(function(t) {if (t.status == 1) { var photo = db.photo.findOne({_id: t.photo_id}); printjson(photo)} });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment