A better query example for the README [ci skip]
This commit is contained in:
parent
7a68d83d6c
commit
94f21e7597
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -216,13 +216,13 @@ for client libraries like Monger.
|
|||
Here is what monger.query DSL feels like:
|
||||
|
||||
``` clojure
|
||||
(with-collection "docs"
|
||||
(find { :inception_year { $lt 2000 $gte 2011 } })
|
||||
(fields [ :inception_year :name ])
|
||||
(with-collection "movies"
|
||||
(find { :year { $lt 2010 $gte 2000 }, :revenue { $gt 20000000 } })
|
||||
(fields [ :year :title :producer :cast :budget :revenue ])
|
||||
(sort-by { :revenue -1 })
|
||||
(skip 10)
|
||||
(limit 20)
|
||||
(batch-size 50)
|
||||
(hint "my-index-name")
|
||||
(hint "year-by-year-revenue-idx")
|
||||
(snapshot))
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue