Liking cljdoc? Tell your friends :D

stillsuit.lacinia.resolvers

Implementation functions for stillsuit resolvers.

Implementation functions for stillsuit resolvers.
raw docstring

attach-resolversclj

(attach-resolvers schema config)
source

datomic-entity-interfaceclj

(datomic-entity-interface config)
source

default-resolverclj

(default-resolver field-name)
source

enum-resolverclj

(enum-resolver {:stillsuit/keys [attribute lacinia-type] :as opts})

Resolver used to get an attribute value for a lacinia enum type. This uses the :stillsuit/enum-map map from the schema definition, which is attached to the app-context by (stillsuit/decorate).

Resolver used to get an attribute value for a lacinia enum type. This uses the :stillsuit/enum-map
map from the schema definition, which is attached to the app-context by (stillsuit/decorate).
sourceraw docstring

get-graphql-valueclj

(get-graphql-value entity graphql-field-name options)

Given a datomic entity and a field name from GraphQL, try to look up the field name in the entity by inspecting the entity, looking for a unique attribute, and using that as the namespace for the keyword.

Given a datomic entity and a field name from GraphQL, try to look up the field name in
the entity by inspecting the entity, looking for a unique attribute, and using that as
the namespace for the keyword.
sourceraw docstring

graphql-field->datomic-attributeclj

(graphql-field->datomic-attribute entity graphql-field-name options)

Given a datomic entity and a field name from GraphQL, try to look up the field name in the entity by inspecting the entity, looking for a unique attribute, and using that as the namespace for the keyword. Return the keyword corresponding to the attribute in datomic.

Given a datomic entity and a field name from GraphQL, try to look up the field name in
the entity by inspecting the entity, looking for a unique attribute, and using that as
the namespace for the keyword. Return the keyword corresponding to the attribute in datomic.
sourceraw docstring

ref-resolverclj

(ref-resolver {:stillsuit/keys [attribute lacinia-type] :as opts})

Resolver used to get a literal attribute value out of an entity, eg in :resolve [:stillsuit/ref {:stillsuit/attribute :artist/_country}]

Resolver used to get a literal attribute value out of an entity, eg in
:resolve [:stillsuit/ref {:stillsuit/attribute :artist/_country}]
sourceraw docstring

resolver-mapclj

(resolver-map config)
source

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

× close