Provides an expressive Query DSL that is very close to that in the Mongo shell (within reason). This is the most flexible and recommended way to query with Monger. Queries can be composed, like in Korma.
Related documentation guide: http://clojuremongodb.info/articles/querying.html
Provides an expressive Query DSL that is very close to that in the Mongo shell (within reason). This is the most flexible and recommended way to query with Monger. Queries can be composed, like in Korma. Related documentation guide: http://clojuremongodb.info/articles/querying.html
(batch-size m n)
(empty-query)
(empty-query coll)
(exec {:keys [collection query fields skip limit sort batch-size hint snapshot
read-preference keywordize-fields max-time-ms options]
:or {limit 0 batch-size 256 skip 0}})
(fields m flds)
(find m query)
(hint m h)
(keywordize-fields m bool)
(limit m n)
(max-time m max-time-ms)
(options m opts)
(paginate m & {:keys [page per-page] :or {page 1 per-page 10}})
(partial-query & body)
(read-preference m rp)
(skip m n)
(snapshot m)
(sort m srt)
(with-collection db coll & body)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |