alumbra.parser

GraphQL Parsing API

parse-document

(parse-document document)

Parse a GraphQL document and return its in-memory representation, conforming to the :alumbra/document spec.

If the parser fails, an error map containing the key :alumbra/parser-errors is returned.

parse-schema

(parse-schema document)

Parse a GraphQL schema and return its in-memory representation, conforming to the :alumbra/schema spec.

If the parser fails, an error map containing the key :alumbra/parser-errors is returned.