VariablesSkipAndFragmentElaborator

grackle.QueryCompiler.VariablesSkipAndFragmentElaborator

A phase which elaborates variables, directives, fragment spreads and inline fragments.

1. Query variable values are substituted for all variable references.

2. skip and include directives are handled during this phase and the guarded subqueries are retained or removed as appropriate.

3. Fragment spread and inline fragments are expanded.

4. types narrowing coercions by resolving the target type against the schema.

5. verifies that leaves have an empty subselection set and that structured types have a non-empty subselection set.

Attributes

Source
compiler.scala
Graph
Supertypes
trait Phase
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Attributes

Source
compiler.scala
def extractCond(value: Value): Elab[Boolean]

Attributes

Source
compiler.scala

Attributes

Source
compiler.scala
override def transform(query: Query): Elab[Query]

Transform the supplied query algebra term query.

Transform the supplied query algebra term query.

Attributes

Definition Classes
Source
compiler.scala

Inherited methods

def transformSelect(fieldName: String, alias: Option[String], child: Query): Elab[Query]

Attributes

Inherited from:
Phase
Source
compiler.scala
def validateSubselection(fieldName: String, child: Query): Elab[Unit]

Attributes

Inherited from:
Phase
Source
compiler.scala

Inherited fields

Attributes

Inherited from:
Phase
Source
compiler.scala