Packages

trait SelectElaborator extends Phase

A compiler phase which translates Select nodes to be directly interpretable.

This phase,

1. types bindings according to the schema: i) untyped enums are validated and typed according to their declared type. ii) String and Int bindings are translated to ID bindings where appropriate. iii) default values are supplied for missing arguments. iv) arguments are permuted into the order declared in the schema.

2. eliminates Select arguments by delegating to a model-specific PartialFunction which is responsible for translating Select nodes into a form which is directly interpretable, for example, replacing them with a Filter or Unique node with a Predicate which is parameterized by the arguments, ie.,

UntypedSelect("character", None, List(IDBinding("id", "1000")), Nil, child) might be translated to, Select("character, None, Filter(FieldEquals("id", "1000"), child)) 3. GraphQL introspection query field arguments are elaborated.

Source
compiler.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SelectElaborator
  2. Phase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def select(ref: TypeRef, name: String, args: List[Binding], directives: List[Directive]): Elab[Unit]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val EnumValueTypeRef: TypeRef
  5. val FieldTypeRef: TypeRef
  6. val QueryTypeRef: TypeRef
  7. val TypeTypeRef: TypeRef
  8. val TypenameType: ObjectType
    Definition Classes
    Phase
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def elaborateFieldArgs(tpe: NamedType, field: Field, args: List[Binding]): Result[List[Binding]]
  12. def elaborateIntrospection(ref: TypeRef, name: String, args: List[Binding]): Elab[Unit]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def introspectionRef(tpe: Type): Option[TypeRef]
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def transform(query: Query): Elab[Query]

    Transform the supplied query algebra term query.

    Transform the supplied query algebra term query.

    Definition Classes
    SelectElaboratorPhase
  26. def transformSelect(fieldName: String, alias: Option[String], child: Query): Elab[Query]
    Definition Classes
    Phase
  27. def validateSubselection(fieldName: String, child: Query): Elab[Unit]
    Definition Classes
    Phase
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Phase

Inherited from AnyRef

Inherited from Any

Ungrouped