Liking cljdoc? Tell your friends :D

com.wsscode.pathom.connect


addclj/s

(add indexes sym)
(add indexes sym sym-data)
source

add-mutationclj/s

(add-mutation indexes sym data)
source

all-async-readersclj/s

source

all-readersclj/s

source

all-values-valid?clj/s

(all-values-valid? m input)
source

async-pick-resolverclj/s

(async-pick-resolver
  {:com.wsscode.pathom.connect/keys [indexes dependency-track] :as env})
source

async-readerclj/s

(async-reader {:com.wsscode.pathom.connect/keys [indexes]
               :as env
               :com.wsscode.pathom.core/keys [processing-sequence]})
source

batch-resolverclj/s

(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).
sourceraw docstring

break-valuesclj/s

source

call-resolverclj/s

(call-resolver {:com.wsscode.pathom.connect/keys [resolver-dispatch]
                :or {resolver-dispatch default-resolver-dispatch}
                :as env}
               entity)
source

data->shapeclj/s

(data->shape data)

Helper function to transform a data into an output shape.

Helper function to transform a data into an output shape.
sourceraw docstring

default-resolver-dispatchclj/s

(default-resolver-dispatch {{:com.wsscode.pathom.connect/keys [sym]
                             :as resolver}
                              :com.wsscode.pathom.connect/resolver-data
                            :as env}
                           entity)
source

discover-attrsclj/s

(discover-attrs {:com.wsscode.pathom.connect/keys [index-io cache] :as index}
                ctx)
source

ident-readerclj/s

(ident-reader env)
source

index-mergerclj/smultimethod

This is an extensible gateway so you can define different strategies for merging different kinds of indexes.

This is an extensible gateway so you can define different strategies for merging different
kinds of indexes.
sourceraw docstring

index-readerclj/s

source

indexed-identclj/s

(indexed-ident {:com.wsscode.pathom.connect/keys [indexes] :as env})
source

merge-indexesclj/s

(merge-indexes ia ib)
source

merge-ioclj/s

(merge-io a b)

Merge ::index-io maps.

Merge ::index-io maps.
sourceraw docstring

merge-oirclj/s

(merge-oir a b)

Merge ::index-oir maps.

Merge ::index-oir maps.
sourceraw docstring

mutateclj/s

(mutate {:com.wsscode.pathom.connect/keys [indexes mutate-dispatch
                                           mutation-join-globals]
         :keys [query]
         :or {mutation-join-globals []}
         :as env}
        sym'
        input)
source

mutate-asyncclj/s

(mutate-async {:com.wsscode.pathom.connect/keys [indexes mutate-dispatch
                                                 mutation-join-globals]
               :keys [query]
               :or {mutation-join-globals []}
               :as env}
              sym'
              input)
source

mutation-dataclj/s

(mutation-data env-or-indexes sym)

Get mutation map information in env from the resolver sym.

Get mutation map information in env from the resolver sym.
sourceraw docstring

mutation-dispatchclj/s

(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.
sourceraw docstring

mutation-factoryclj/s

(mutation-factory mm idx)
source

pick-resolverclj/s

(pick-resolver {:com.wsscode.pathom.connect/keys [indexes dependency-track]
                :as env})
source

readerclj/s

(reader {:com.wsscode.pathom.connect/keys [indexes]
         :as env
         :com.wsscode.pathom.core/keys [processing-sequence]})
source

reprocess-indexclj/s

(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
sourceraw docstring

resolver-dataclj/s

(resolver-data env-or-indexes sym)

Get resolver map information in env from the resolver sym.

Get resolver map information in env from the resolver sym.
sourceraw docstring

resolver-dispatchclj/s

(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.
sourceraw docstring

resolver-factoryclj/s

(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.
sourceraw docstring

sort-resolversclj/s

(sort-resolvers {:com.wsscode.pathom.core/keys [request-cache]} resolvers e)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close