QueryCompiler

edu.gemini.grackle.QueryCompiler
See theQueryCompiler companion object
class QueryCompiler(schema: Schema, phases: List[Phase])

GraphQL query compiler.

A QueryCompiler parses GraphQL queries to query algebra terms, then applies a collection of transformation phases in sequence, yielding a query algebra term which can be directly interpreted.

Attributes

Companion:
object
Source:
compiler.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def compile(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel): Result[Operation]

Compiles the GraphQL query text to a query algebra term which can be directly executed.

Compiles the GraphQL query text to a query algebra term which can be directly executed.

Any errors are accumulated on the left.

Attributes

Source:
compiler.scala

Attributes

Source:
compiler.scala
def compileUntyped(parsed: UntypedOperation, untypedVars: Option[Json], introspectionLevel: IntrospectionLevel): Result[Operation]

Attributes

Source:
compiler.scala

Attributes

Source:
compiler.scala
def compileVars(varDefs: VarDefs, untypedVars: Option[Json]): Result[Vars]

Attributes

Source:
compiler.scala