Correct query DSL example in the README, references #19

This commit is contained in:
Michael S. Klishin 2012-04-08 23:52:33 +04:00
parent e4ad10fc11
commit 05669a6778

View file

@ -223,7 +223,7 @@ Here is what monger.query DSL feels like:
(with-collection "movies" (with-collection "movies"
(find { :year { $lt 2010 $gte 2000 }, :revenue { $gt 20000000 } }) (find { :year { $lt 2010 $gte 2000 }, :revenue { $gt 20000000 } })
(fields [ :year :title :producer :cast :budget :revenue ]) (fields [ :year :title :producer :cast :budget :revenue ])
(sort-by { :revenue -1 }) (sort { :revenue -1 })
(skip 10) (skip 10)
(limit 20) (limit 20)
(hint "year-by-year-revenue-idx") (hint "year-by-year-revenue-idx")