Liking cljdoc? Tell your friends :D

com.walmartlabs.lacinia.parser

Parsing of client querys using the ANTLR grammar.

Parsing of client querys using the ANTLR grammar.
raw docstring

operationsclj

(operations parsed-query)

Given a previously parsed query, this returns a map of two keys:

:type : The type of request, one of: :query, :mutation, or :subscription.

:operations : The names of the top-level operations, as a set of keywords.

Given a previously parsed query, this returns a map of two keys:

:type
: The type of request, one of: :query, :mutation, or :subscription.

:operations
: The names of the top-level operations, as a set of keywords.
raw docstring

parse-queryclj

(parse-query schema query-string)
(parse-query schema query-string operation-name)

Given a compiled schema and a query-string, parses it using the Antlr grammar. Returns an executable form of the query: a map of the form {:fragments ... :selections ...}.

Given a compiled schema and a query-string, parses it using the Antlr grammar.
Returns an executable form of the query: a map of the form `{:fragments ... :selections ...}`.
raw docstring

prepare-with-query-variablesclj

(prepare-with-query-variables parsed-query variables)

Given a parsed query data structure and a map of variables, update the query, calculating field arguments and applying directives.

Given a parsed query data structure and a map of variables,
update the query, calculating field arguments and applying directives.
raw docstring

summarize-queryclj

(summarize-query parsed-query)

Analyzes a parsed query, returning a summary string.

The summary superficially resembles a GraphQL query, but strips out aliases, directives, and field arguments. In addition, fragments (both inline and named) are collapsed into their containing selections.

This summary can act as a 'fingerprint' of a related set of queries and is typically used in query performance analysis.

Analyzes a parsed query, returning a summary string.

The summary superficially resembles a GraphQL query, but
strips out aliases, directives, and field arguments. In addition, fragments (both inline and named)
are collapsed into their containing selections.

This summary can act as a 'fingerprint' of a related set of queries and is typically used
in query performance analysis.
raw docstring

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

× close