(is-query datasource)
(is-set attr datasource)
(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"}}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close