Liking cljdoc? Tell your friends :D

monger.multi.collection

Includes versions of key monger.collection functions that always take a database as explicit argument instead of relying on monger.core/mongodb-database.

Use these functions when you need to work with multiple databases or manage database and connection lifecycle explicitly.

Includes versions of key monger.collection functions that always take a database
as explicit argument instead of relying on monger.core/*mongodb-database*.

Use these functions when you need to work with multiple databases or manage database
and connection lifecycle explicitly.
raw docstring

any?clj

(any? db collection)
(any? db collection conditions)

Like monger.collection/any? but always takes a database as explicit argument

Like monger.collection/any? but always takes a database as explicit argument
sourceraw docstring

countclj

(count db collection)
(count db collection conditions)

Like monger.collection/count but always takes a database as explicit argument

Like monger.collection/count but always takes a database as explicit argument
sourceraw docstring

createclj

(create db collection options)

Like monger.collection/create but always takes a database as explicit argument

Like monger.collection/create but always takes a database as explicit argument
sourceraw docstring

create-indexclj

(create-index db collection keys)
(create-index db collection keys options)

Like monger.collection/create-index but always takes a database as explicit argument

Like monger.collection/create-index but always takes a database as explicit argument
sourceraw docstring

distinctclj

(distinct db collection key)
(distinct db collection key query)

Like monger.collection/distinct but always takes a database as explicit argument

Like monger.collection/distinct but always takes a database as explicit argument
sourceraw docstring

dropclj

(drop db collection)

Like monger.collection/drop but always takes a database as explicit argument

Like monger.collection/drop but always takes a database as explicit argument
sourceraw docstring

drop-indexclj

(drop-index db collection idx-name)

Like monger.collection/drop-index but always takes a database as explicit argument

Like monger.collection/drop-index but always takes a database as explicit argument
sourceraw docstring

drop-indexesclj

(drop-indexes db collection)

Like monger.collection/drop-indexes but always takes a database as explicit argument

Like monger.collection/drop-indexes but always takes a database as explicit argument
sourceraw docstring

empty?clj

(empty? db collection)

Like monger.collection/empty? but always takes a database as explicit argument

Like monger.collection/empty? but always takes a database as explicit argument
sourceraw docstring

ensure-indexclj

(ensure-index db collection keys)
(ensure-index db collection keys options)
(ensure-index db collection keys name unique?)

Like monger.collection/ensure-index but always takes a database as explicit argument

Like monger.collection/ensure-index but always takes a database as explicit argument
sourceraw docstring

exists?clj

(exists? db collection)

Like monger.collection/exists? but always takes a database as explicit argument

Like monger.collection/exists? but always takes a database as explicit argument
sourceraw docstring

findclj

(find db collection)
(find db collection ref)
(find db collection ref fields)

Like monger.collection/find but always takes a database as explicit argument

Like monger.collection/find but always takes a database as explicit argument
sourceraw docstring

find-and-modifyclj

(find-and-modify db
                 collection
                 conditions
                 document
                 &
                 {:keys [fields sort remove return-new upsert keywordize]
                  :or {fields nil
                       sort nil
                       remove false
                       return-new false
                       upsert false
                       keywordize true}})

Like monger.collection/find-and-modify but always takes a database as explicit argument

Like monger.collection/find-and-modify but always takes a database as explicit argument
sourceraw docstring

find-by-idclj

(find-by-id db collection id)
(find-by-id db collection id fields)

Like monger.collection/find-by-id but always takes a database as explicit argument

Like monger.collection/find-by-id but always takes a database as explicit argument
sourceraw docstring

find-map-by-idclj

(find-map-by-id db collection id)
(find-map-by-id db collection id fields)
(find-map-by-id db collection id fields keywordize)

Like monger.collection/find-map-by-id but always takes a database as explicit argument

Like monger.collection/find-map-by-id but always takes a database as explicit argument
sourceraw docstring

find-mapsclj

(find-maps db collection)
(find-maps db collection ref)
(find-maps db collection ref fields)

Like monger.collection/find-maps but always takes a database as explicit argument

Like monger.collection/find-maps but always takes a database as explicit argument
sourceraw docstring

find-oneclj

(find-one db collection ref)
(find-one db collection ref fields)

Like monger.collection/find-one but always takes a database as explicit argument

Like monger.collection/find-one but always takes a database as explicit argument
sourceraw docstring

find-one-as-mapclj

(find-one-as-map db collection ref)
(find-one-as-map db collection ref fields)
(find-one-as-map db collection ref fields keywordize)

Like monger.collection/find-one-as-map but always takes a database as explicit argument

Like monger.collection/find-one-as-map but always takes a database as explicit argument
sourceraw docstring

find-seqclj

(find-seq db collection)
(find-seq db collection ref)
(find-seq db collection ref fields)

Like monger.collection/find-seq but always takes a database as explicit argument

Like monger.collection/find-seq but always takes a database as explicit argument
sourceraw docstring

indexes-onclj

(indexes-on db collection)

Like monger.collection/indexes-on but always takes a database as explicit argument

Like monger.collection/indexes-on but always takes a database as explicit argument
sourceraw docstring

insertclj

(insert db collection document)
(insert db collection document concern)

Like monger.collection/insert but always takes a database as explicit argument

Like monger.collection/insert but always takes a database as explicit argument
sourceraw docstring

insert-and-returnclj

(insert-and-return db collection document)
(insert-and-return db collection document concern)

Like monger.collection/insert-and-return but always takes a database as explicit argument

Like monger.collection/insert-and-return but always takes a database as explicit argument
sourceraw docstring

insert-batchclj

(insert-batch db collection documents)
(insert-batch db collection documents concern)

Like monger.collection/insert-batch but always takes a database as explicit argument

Like monger.collection/insert-batch but always takes a database as explicit argument
sourceraw docstring

map-reduceclj

(map-reduce db collection js-mapper js-reducer output query)
(map-reduce db collection js-mapper js-reducer output output-type query)

Like monger.collection/map-reduce but always takes a database as explicit argument

Like monger.collection/map-reduce but always takes a database as explicit argument
sourceraw docstring

removeclj

(remove db collection)
(remove db collection conditions)

Like monger.collection/remove but always takes a database as explicit argument

Like monger.collection/remove but always takes a database as explicit argument
sourceraw docstring

remove-by-idclj

(remove-by-id db collection id)

Like monger.collection/remove-by-id but always takes a database as explicit argument

Like monger.collection/remove-by-id but always takes a database as explicit argument
sourceraw docstring

renameclj

(rename db from to)
(rename db from to drop-target)

Like monger.collection/rename but always takes a database as explicit argument

Like monger.collection/rename but always takes a database as explicit argument
sourceraw docstring

saveclj

(save db collection document)
(save db collection document write-concern)

Like monger.collection/save but always takes a database as explicit argument

Like monger.collection/save but always takes a database as explicit argument
sourceraw docstring

save-and-returnclj

(save-and-return db collection document)
(save-and-return db collection document write-concern)

Like monger.collection/save-and-return but always takes a database as explicit argument

Like monger.collection/save-and-return but always takes a database as explicit argument
sourceraw docstring

updateclj

(update db
        collection
        conditions
        document
        &
        {:keys [upsert multi write-concern]
         :or {upsert false
              multi false
              write-concern monger.core/*mongodb-write-concern*}})

Like monger.collection/update but always takes a database as explicit argument

Like monger.collection/update but always takes a database as explicit argument
sourceraw docstring

update-by-idclj

(update-by-id db
              collection
              id
              document
              &
              {:keys [upsert write-concern]
               :or {upsert false
                    write-concern monger.core/*mongodb-write-concern*}})

Like monger.collection/update-by-id but always takes a database as explicit argument

Like monger.collection/update-by-id but always takes a database as explicit argument
sourceraw docstring

upsertclj

(upsert db
        collection
        conditions
        document
        &
        {:keys [multi write-concern]
         :or {multi false write-concern monger.core/*mongodb-write-concern*}})

Like monger.collection/upsert but always takes a database as explicit argument

Like monger.collection/upsert but always takes a database as explicit argument
sourceraw docstring

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

× close