Liking cljdoc? Tell your friends :D

spirit.datomic.process.pipeline.set


is-queryclj

(is-query datasource)

is-setclj

(is-set attr datasource)

wrap-attr-setclj

(wrap-attr-set f)

wraps normalise to type check inputs as well as to coerce incorrect inputs (pipeline/normalise {:account {:tags "10"}} {:schema (schema/schema examples/account-orders-items-image)} {:normalise-attr [wrap-attr-set]}) => {:account {:tags #{"10"}}}

(pipeline/normalise {:account {:user #{"andy" "bob"}}} {:schema (schema/schema examples/account-orders-items-image) :type "query"} {:normalise-attr [wrap-attr-set]}) => {:account {:user #{"bob" "andy"}}}

wraps normalise to type check inputs as well as to coerce incorrect inputs
(pipeline/normalise {:account {:tags "10"}}
                     {:schema (schema/schema examples/account-orders-items-image)}
                     {:normalise-attr [wrap-attr-set]})
=> {:account {:tags #{"10"}}}

(pipeline/normalise {:account {:user #{"andy" "bob"}}}
                     {:schema (schema/schema examples/account-orders-items-image)
                      :type "query"}
                     {:normalise-attr [wrap-attr-set]})
=> {:account {:user #{"bob" "andy"}}}
raw docstring

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

× close