Liking cljdoc? Tell your friends :D

leona.core


add-external-schemasclj

(add-external-schemas generated schemas)
source

attach-field-resolverclj

(attach-field-resolver m field-spec resolver)

Adds a field resolver into the provided pre-compiled data structure

Adds a field resolver into the provided pre-compiled data structure
sourceraw docstring

attach-field-resolversclj

(attach-field-resolvers m & field-pairs)

Adds a series of field resolvers into the provided pre-compiled data structure

Adds a series of field resolvers into the provided pre-compiled data structure
sourceraw docstring

attach-middlewareclj

(attach-middleware m middleware-fn)

Adds a middleware fn into the provided pre-compiled data structure

Adds a middleware fn into the provided pre-compiled data structure
sourceraw docstring

attach-mutationclj

(attach-mutation m mutation-spec results-spec resolver)

Adds a mutation resolver fn into the provided pre-compiled data structure

Adds a mutation resolver fn into the provided pre-compiled data structure
sourceraw docstring

attach-queryclj

(attach-query m query-spec results-spec resolver)

Adds a query resolver into the provided pre-compiled data structure

Adds a query resolver into the provided pre-compiled data structure
sourceraw docstring

attach-schemaclj

(attach-schema m schema)

Adds an external Lacinia schema into the provided pre-compiled data structure

Adds an external Lacinia schema into the provided pre-compiled data structure
sourceraw docstring

build-middlewareclj

(build-middleware resolver middleware args)

Builds a fn which nests all the middleware and eventually the resolver

Builds a fn which nests all the middleware and eventually the resolver
sourceraw docstring

compileclj

(compile m)

Generates a Lacinia schema from pre-compiled data structure and compiles it.

Generates a Lacinia schema from pre-compiled data structure and compiles it.
sourceraw docstring

createclj

(create)

Creates an empty pre-compiled data structure for Leona

Creates an empty pre-compiled data structure for Leona
sourceraw docstring

errorclj

(error {key :key message :message :as error-map})

Creates an error result as recognised by Lacinia

Creates an error result as recognised by Lacinia
sourceraw docstring

executeclj

(execute m query)

Executes Lacinia commands; adds middleware into the context which is required by the resolver wrapper

Executes Lacinia commands; adds middleware into the context which is required by the resolver wrapper
sourceraw docstring

format-inputclj

(format-input m)

Format the input into a resolver

Format the input into a resolver
sourceraw docstring

format-resultclj

(format-result m)

Format the results of a resolver

Format the results of a resolver
sourceraw docstring

generateclj

(generate m)

Takes pre-compiled data structure and converts it into a Lacinia schema

Takes pre-compiled data structure and converts it into a Lacinia schema
sourceraw docstring

inject-field-resolversclj

(inject-field-resolvers m frs)

Walks a set of objects, attempting to inject field resolvers into certain types

Walks a set of objects, attempting to inject field resolvers into certain types
sourceraw docstring

wrap-resolverclj

(wrap-resolver id resolver-fn input-spec result-spec)

Used to wrap resolver fns provided by the user. This adds re-formatting in both directions and spec validation

Used to wrap resolver fns provided by the user. This adds re-formatting in both directions and spec validation
sourceraw docstring

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

× close