Support for allowing resolvers to be declared on attributes via ::pc/input ::pc/output and ::pc/resolve. This is useful because it allows custom resolution of an attribute that then has all of the RAD abilities attributes have.
(defattr server-time :server/time :inst
{::pc/output [:server/time]
::pc/resolver (fn [_ _] (java.util.Date.))
::form/label "Current Server Time"
::form/field-style :some-custom-style
...})
Then install them in your parser as a list of resolvers you can obtain from (resolvers/generate-resolvers all-attributes)
.
You may also, of course, define resolvers using defresolver
and other pathom functions, but you must install those
separately.
Support for allowing resolvers to be declared on attributes via ::pc/input ::pc/output and ::pc/resolve. This is useful because it allows custom resolution of an attribute that then has all of the RAD abilities attributes have. ``` (defattr server-time :server/time :inst {::pc/output [:server/time] ::pc/resolver (fn [_ _] (java.util.Date.)) ::form/label "Current Server Time" ::form/field-style :some-custom-style ...}) ``` Then install them in your parser as a list of resolvers you can obtain from `(resolvers/generate-resolvers all-attributes)`. You may also, of course, define resolvers using `defresolver` and other pathom functions, but you must install those separately.
(attribute-resolver attr)
Generate a resolver for an attribute that specifies a ::pc/resolve key. Returns a resolver or nil.
Generate a resolver for an attribute that specifies a ::pc/resolve key. Returns a resolver or nil.
(generate-resolvers attributes)
Generate resolvers for attributes that directly define pathom ::pc/resolve keys
Generate resolvers for attributes that directly define pathom ::pc/resolve keys
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close