Parsing of client querys using the ANTLR grammar.
Parsing of client querys using the ANTLR grammar.
(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.
(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 ...}`.(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |