(async-pick-resolver
{:com.wsscode.pathom.connect/keys [indexes dependency-track] :as env})
(async-reader {:com.wsscode.pathom.connect/keys [indexes]
:as env
:com.wsscode.pathom.core/keys [processing-sequence]})
(batch-resolver single-fn multi-fn)
Return a resolver that will dispatch to single-fn when the input is a single value, and multi-fn when multiple inputs are provided (on batch cases).
Return a resolver that will dispatch to single-fn when the input is a single value, and multi-fn when multiple inputs are provided (on batch cases).
(call-resolver {:com.wsscode.pathom.connect/keys [resolver-dispatch]
:or {resolver-dispatch default-resolver-dispatch}
:as env}
entity)
(data->shape data)
Helper function to transform a data into an output shape.
Helper function to transform a data into an output shape.
(default-resolver-dispatch {{:com.wsscode.pathom.connect/keys [sym]
:as resolver}
:com.wsscode.pathom.connect/resolver-data
:as env}
entity)
(discover-attrs {:com.wsscode.pathom.connect/keys [index-io cache] :as index}
ctx)
(mutate {:com.wsscode.pathom.connect/keys [indexes mutate-dispatch
mutation-join-globals]
:keys [query]
:or {mutation-join-globals []}
:as env}
sym
input)
(mutate-async {:com.wsscode.pathom.connect/keys [indexes mutate-dispatch
mutation-join-globals]
:keys [query]
:or {mutation-join-globals []}
:as env}
sym
input)
(mutation-dispatch env _)
Helper method that extract key from ast symbol from env. It's recommended to use as a dispatch method for creating multi-methods for mutation dispatch.
Helper method that extract key from ast symbol from env. It's recommended to use as a dispatch method for creating multi-methods for mutation dispatch.
(pick-resolver {:com.wsscode.pathom.connect/keys [indexes dependency-track]
:as env})
(reader {:com.wsscode.pathom.connect/keys [indexes]
:as env
:com.wsscode.pathom.core/keys [processing-sequence]})
(reprocess-index {:com.wsscode.pathom.connect/keys [index-resolvers]})
This will use the ::index-resolvers to re-build the index. You might need that if in development you changed some definitions and got in a dirty state somehow
This will use the ::index-resolvers to re-build the index. You might need that if in development you changed some definitions and got in a dirty state somehow
(resolver-data env sym)
Get resolver map information in env from the resolver sym.
Get resolver map information in env from the resolver sym.
(resolver-dispatch env)
(resolver-dispatch env _)
Helper method that extract resolver symbol from env. It's recommended to use as a dispatch method for creating multi-methods for resolver dispatch.
Helper method that extract resolver symbol from env. It's recommended to use as a dispatch method for creating multi-methods for resolver dispatch.
(resolver-factory mm idx)
Given multi-method mm and index atom idx, returns a function with the given signature: [sym config f], the function will be add to the mm and will be indexed using config as the config params for connect/add.
Given multi-method mm and index atom idx, returns a function with the given signature: [sym config f], the function will be add to the mm and will be indexed using config as the config params for connect/add.
(sort-resolvers {:com.wsscode.pathom.core/keys [request-cache]} resolvers e)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close