Liking cljdoc? Tell your friends :D

monger.query

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
raw docstring

batch-sizeclj

(batch-size m n)

empty-queryclj

(empty-query)
(empty-query coll)

execclj

(exec {:keys [collection query fields skip limit sort batch-size hint snapshot
              read-preference keywordize-fields options]
       :or {limit 0 batch-size 256 skip 0}})

fieldsclj

(fields m flds)

findclj

(find m query)

hintclj

(hint m h)

keywordize-fieldsclj

(keywordize-fields m bool)

limitclj

(limit m n)

optionsclj

(options m opts)

paginateclj

(paginate m & {:keys [page per-page] :or {page 1 per-page 10}})

partial-querycljmacro

(partial-query & body)

read-preferenceclj

(read-preference m rp)

skipclj

(skip m n)

snapshotclj

(snapshot m)

sortclj

(sort m srt)

with-collectioncljmacro

(with-collection db coll & body)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close