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

batch-size

(batch-size m n)

empty-query

(empty-query)(empty-query coll)

exec

(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}})

fields

(fields m flds)

find

(find m query)

hint

(hint m h)

keywordize-fields

(keywordize-fields m bool)

limit

(limit m n)

options

(options m opts)

paginate

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

partial-query

macro

(partial-query & body)

read-preference

(read-preference m rp)

skip

(skip m n)

snapshot

(snapshot m)

sort

(sort m srt)

with-collection

macro

(with-collection db coll & body)