(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) :command :query} {:normalise-branch [wrap-branch-underscore]}) => {:account {:user '#{}}}
wraps normalise to process underscores
(pipeline/normalise {:account '_}
{:schema (schema/schema examples/account-orders-items-image)
:command :query}
{:normalise-branch [wrap-branch-underscore]})
=> {:account {:user '#{_}}}cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |