Created
November 14, 2011 09:10
-
-
Save michaelklishin/1363577 to your computer and use it in GitHub Desktop.
Our new MongoDB query DSL in Monger, implemented in < 100 lines of Clojure
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
(with-collection "docs" | |
(find { :inception_year { $lt 2000 $gte 2011 } }) | |
(fields { :inception_year 1 :name 1 }) | |
(skip 10) | |
(limit 20) | |
(batch-size 50) | |
(hint "my-index-name") | |
(snapshot)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment