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
Mapping of [from to] pairs to translation functions for coerce.
Mapping of [from to] pairs to translation functions for coerce.
(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
(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.
(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!
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close