Liking cljdoc? Tell your friends :D

somnium.congomongo.coerce


*keywordize*clj

Set this to false to prevent coercion from setting string keys to keywords

Set this to false to prevent coercion from setting string keys to keywords
sourceraw docstring

coerceclj

(coerce obj [:from :to])
(coerce obj [:from :to] :many many?)

takes an object, a vector of keywords: from [ :clojure :mongo :json ] to [ :clojure :mongo :json ], and an an optional :many keyword parameter which defaults to false

takes an object, a vector of keywords:
from [ :clojure :mongo :json ]
to   [ :clojure :mongo :json ],
and an an optional :many keyword parameter which defaults to false
sourceraw docstring

coerce-fieldsclj

(coerce-fields fields)

Used for creating argument object for :only - unordered, maps truthy to 1 and falsey to 0, default 1.

Used for creating argument object for :only - unordered,
maps truthy to 1 and falsey to 0, default 1.
sourceraw docstring

coerce-index-fieldsclj

(coerce-index-fields fields)

Used for creating index specifications. Deprecated as of 0.3.3. [:a :b :c] => (array-map :a 1 :b 1 :c 1) [:a [:b 1] :c] => (array-map :a 1 :b -1 :c 1)

See also somnium.congomongo/add-index!

Used for creating index specifications.
Deprecated as of 0.3.3.
[:a :b :c] => (array-map :a 1 :b 1 :c 1)
[:a [:b 1] :c] => (array-map :a 1 :b -1 :c 1)

See also somnium.congomongo/add-index!
sourceraw docstring

coerce-ordered-fieldsclj

(coerce-ordered-fields fields)

Used for creating index specifications and sort specifications. Accepts a vector of fields or field/value pairs. Produces an ordered object of field/value pairs - default 1.

Used for creating index specifications and sort specifications.
Accepts a vector of fields or field/value pairs. Produces an
ordered object of field/value pairs - default 1.
sourceraw docstring

ConvertibleFromMongocljprotocol

mongo->clojureclj

(mongo->clojure o keywordize)
source

ConvertibleToMongocljprotocol

clojure->mongoclj

(clojure->mongo o)
source

dbobjectclj

(dbobject & args)
source

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

× close