Skip to content

Instantly share code, notes, and snippets.

@x
Last active August 29, 2015 13:59
Show Gist options
  • Save x/10686387 to your computer and use it in GitHub Desktop.
Save x/10686387 to your computer and use it in GitHub Desktop.
a dirty list diff function for mongo console
db.COL1.find().toArray().filter(function(doc){return !db.COL2.find(IDENTIFIER).count()})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment