(rep-key tsch)
(rep-key tsch lvl)
finds the :required or :representative key within a schema, otherwise throws an error (rep-key (:account examples/account-orders-items-image)) => [:user]
(rep-key (:order examples/account-orders-items-image)) => (throws-info {:needs-require-key true})
finds the :required or :representative key within a schema, otherwise throws an error (rep-key (:account examples/account-orders-items-image)) => [:user] (rep-key (:order examples/account-orders-items-image)) => (throws-info {:needs-require-key true})
(wrap-branch-underscore f)
wraps normalise to process underscores (pipeline/normalise {:account '} {:schema (schema/schema examples/account-orders-items-image) :type "query"} {:normalise-branch [wrap-branch-underscore]}) => {:account {:user '#{}}}
wraps normalise to process underscores (pipeline/normalise {:account '_} {:schema (schema/schema examples/account-orders-items-image) :type "query"} {:normalise-branch [wrap-branch-underscore]}) => {:account {:user '#{_}}}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close