Last active
December 19, 2015 14:59
-
-
Save tairov/5973070 to your computer and use it in GitHub Desktop.
mongodb queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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