Skip to content

Instantly share code, notes, and snippets.

@RubyRonin
Created May 17, 2018 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubyRonin/983bfb4c0063bcdbbfe4e31d391deaa0 to your computer and use it in GitHub Desktop.
Save RubyRonin/983bfb4c0063bcdbbfe4e31d391deaa0 to your computer and use it in GitHub Desktop.
[
{
"collection": "collection",
"count": 10,
"content": {
"k": {
"type": "int",
"minInt": 0,
"maxInt": 10
}
}
}
]
db.collection.find({
$and: [{ "count": 10 }, {"collection": "collection"}]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment