Liking cljdoc? Tell your friends :D

artemis.document


composeclj/s

(compose root-doc & docs)

Compose multiple parsed documents together to create a single document.

Compose multiple parsed documents together to create a single document.
sourceraw docstring

inline-fragmentsclj/s

(inline-fragments doc)

Given a parsed document that includes fragments, inline the values of the fragments directly into the query selection set(s).

Given a parsed document that includes fragments, inline the values of the
fragments directly into the query selection set(s).
sourceraw docstring

operationclj/s

(operation document)
(operation document variables)
(operation document variables inline-fragments?)

Given a document and some variables, return a map that describes the operation to execute under the :graphql key and a function to neatly unpack the data that results from that operation under the :unpack key. Unpacking reifies operations that were namespaced as a result of applying an operation mapping.

Given a document and some variables, return a map that describes the
operation to execute under the :graphql key and a function to neatly unpack
the data that results from that operation under the :unpack key. Unpacking
reifies operations that were namespaced as a result of applying an operation
mapping.
sourceraw docstring

parseclj

(parse source)
source

parse-documentclj/smacro

(parse-document source)

Parses a GraphQL query string and emits an AST representation of the source as Clojure data.

Parses a GraphQL query string and emits an AST representation of the source
as Clojure data.
sourceraw docstring

parse-document-filesclj/smacro

(parse-document-files & files)

Parses GraphQL files and emits an AST representation of the source as Clojure data.

Parses GraphQL files and emits an AST representation of the source as
Clojure data.
sourceraw docstring

selectclj/s

(select doc data)
(select doc data drop-unmatched?)

Given a query or fragment document and a map of data, select only the information in data that the document lists in its selection set.

Given a query or fragment document and a map of data, select only the
information in data that the document lists in its selection set.
sourceraw docstring

with-mappingclj/s

(with-mapping doc mapping)

Attaches an operation mapping to a document as meta data. An operation mapping maps a key to any named GraphQL operation within the document. Different keys can map to the same operation. When running an operation from the document, the operation mapping will be used to resolve multiple sets of variables based on the mapped key.

Attaches an operation mapping to a document as meta data. An operation
mapping maps a key to any named GraphQL operation within the document.
Different keys can map to the same operation. When running an operation from
the document, the operation mapping will be used to resolve multiple sets of
variables based on the mapped key.
sourceraw docstring

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

× close