Skip to content

Instantly share code, notes, and snippets.

@peterzawistowicz
Created May 27, 2015 21:21
Show Gist options
  • Save peterzawistowicz/3a7ef30bc94d6a6bf2e7 to your computer and use it in GitHub Desktop.
Save peterzawistowicz/3a7ef30bc94d6a6bf2e7 to your computer and use it in GitHub Desktop.
db.pairs.find( { _id.a: "u123", count: { $gt: 10 }} )
.sort({ count: -1 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment