Liking cljdoc? Tell your friends :D

com.wsscode.pathom3.graphql


adapt-fieldclj/s

(adapt-field {:com.wsscode.pathom3.graphql/keys [gql-types-index] :as env}
             {type-name "name"}
             {:strs [type name args] :as field})

adapt-typeclj/s

(adapt-type env type)

build-indexesclj/s

(build-indexes {:com.wsscode.pathom3.graphql/keys [namespace root-entries-map]
                :as env}
               schema)

connect-graphqlclj/s

(connect-graphql env
                 {:com.wsscode.pathom3.graphql/keys [namespace] :as config}
                 request)

Setup a GraphQL connection on the env.

The request must be a function that takes a GraphQL string, executes it (or maybe send to a server) and return the response as a Clojure map. The Clojure map should be the exact same data the GraphQL returns. The keys MUST be encoded as strings, if you convert the keys to keywords it wont work.

Config may include the following keys:

::namespace (required) - a namespace (as string) to prefix the entries for this graphql

Setup a GraphQL connection on the env.

The request must be a function that takes a GraphQL string, executes it (or maybe send
to a server) and return the response as a Clojure map. The Clojure map should be the
exact same data the GraphQL returns. The keys MUST be encoded as strings, if you convert
the keys to keywords it wont work.

Config may include the following keys:

::namespace (required) - a namespace (as string) to prefix the entries for this graphql
raw docstring

convert-backclj/s

(convert-back env response)

entity-field-keyclj/s

(entity-field-key {:com.wsscode.pathom3.graphql/keys [namespace]} entity field)

fields-indexclj/s

(fields-index {:com.wsscode.pathom3.graphql/keys [gql-types-index]})

format-errorclj/s

(format-error {:strs [message path]})

index-root-entries-fieldsclj/s

(index-root-entries-fields env)

inferred-root-entries-mapclj/s

(inferred-root-entries-map {:com.wsscode.pathom3.graphql/keys [gql-types-index]}
                           {:strs [fields]})

inject-gql-onclj/s

(inject-gql-on parent-type {:keys [dispatch-key] :as node})

interface-keyclj/s

(interface-key env s)

interfaces-usage-indexclj/s

(interfaces-usage-index {:com.wsscode.pathom3.graphql/keys [gql-object-types
                                                            gql-types-index]})

load-schemaclj/s

(load-schema config request)

map-childrenclj/s

(map-children f node)

next-is-expected-dynamic?clj/s

(next-is-expected-dynamic? {:com.wsscode.pathom3.connect.planner/keys [node
                                                                       graph]}
                           gql-dynamic-op-name)

pathom-main-resolverclj/s

(pathom-main-resolver env gql-dynamic-op-name)

pathom-mutationsclj/s

(pathom-mutations {:com.wsscode.pathom3.graphql/keys [gql-dynamic-op-name
                                                      gql-mutation-type]})

pathom-query-entry-resolverclj/s

(pathom-query-entry-resolver type-name)

pathom-root-entries-map-resolveclj/s

(pathom-root-entries-map-resolve
  {:com.wsscode.pathom3.graphql/keys [gql-dynamic-op-name root-entries-map]
   :as env}
  {:com.wsscode.pathom3.graphql/keys [gql-field-name] :strs [name]})

pathom-root-entries-resolversclj/s

(pathom-root-entries-resolvers {:com.wsscode.pathom3.graphql/keys
                                  [gql-query-type gql-types-index
                                   root-entries-map namespace]
                                :as env})

pathom-type-resolversclj/s

(pathom-type-resolvers {:com.wsscode.pathom3.graphql/keys
                          [namespace gql-types-index gql-indexable-types
                           gql-interface-usages-index gql-dynamic-op-name]})

prefixed-keyclj/s

(prefixed-key {:com.wsscode.pathom3.graphql/keys [namespace]} p s)

prepare-gql-astclj/s

(prepare-gql-ast env ast)

process-gql-requestclj/s

(process-gql-request {:com.wsscode.pathom3.graphql/keys [request]
                      :as schema-env}
                     env
                     input)

schema-queryclj/s


set-union-pathclj/s

(set-union-path schema-env entity)

type->field-nameclj/s

(type->field-name env {:strs [kind name ofType]})

type-chainclj/s

(type-chain type)

type-indexable?clj/s

(type-indexable? {:com.wsscode.pathom3.graphql/keys [gql-mutation-type-name]}
                 {:strs [name kind]})

type-keyclj/s

(type-key env s)

type-leaf-nameclj/s

(type-leaf-name {:strs [kind name ofType]})

union-keyclj/s

(union-key env s)

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

× close