package parser
GraphQL parser for Scala.
A parser for the GraphQL language. It returns nodes from its corresponding AST library.
The entry point of this library is the QueryParser object's methods.
- See also
The parser conforms roughly to the June 2018 spec.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- parser
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class ParserConfig(experimentalFragmentVariables: Boolean = false, sourceIdFn: (ParserInput) => String = ParserConfig.defaultSourceIdFn, sourceMapperFn: CodeSourceToSourceMapperFunction = ParserConfig.defaultSourceMapperFn, parseLocations: Boolean = true, parseComments: Boolean = true) extends Product with Serializable
- class QueryParser extends Parser with Tokens with Ignored with Document with Operations with Fragments with Values with Directives with Types with TypeSystemDefinitions
- case class SyntaxError(parser: Parser, input: ParserInput, originalError: ParseError) extends Exception with Product with Serializable
Deprecated Type Members
- type SourceMapper = ast.SourceMapper
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) please use
sangria.ast.SourceMapper
Value Members
- object ParserConfig extends Serializable
- object QueryParser
GraphQL parsing methods.
GraphQL parsing methods.
The parser is written with Parboiled2. Each of the method types takes either a string, or a Parboiled2
ParserInputfor more generality.