object Query

Source
query.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Binding(name: String, value: Value) extends Product with Serializable
  2. case class Component[F[_]](mapping: Mapping[F], join: (Query, Cursor) => Result[Query], child: Query) extends Query with Product with Serializable

    Identifies a component boundary.

    Identifies a component boundary. join is applied to the current cursor and child yielding a continuation query which will be evaluated by the interpreter identified by componentId.

  3. case class Count(child: Query) extends Query with Product with Serializable

    Computes the number of top-level elements of child

  4. case class Effect[F[_]](handler: EffectHandler[F], child: Query) extends Query with Product with Serializable

    Embeds possibly batched effects.

    Embeds possibly batched effects. handler is applied to one or more possibly batched queries and cursors yielding corresponding continuation queries and cursors which will be evaluated by the current interpreter in the next phase.

  5. trait EffectHandler[F[_]] extends AnyRef
  6. case class Environment(env: Env, child: Query) extends Query with Product with Serializable

    Add env to the environment for the continuation child

  7. case class Filter(pred: Predicate, child: Query) extends Query with Product with Serializable

    Retains only elements satisfying pred and continues with child

  8. case class Group(queries: List[Query]) extends Query with Product with Serializable

    A Group of sibling queries at the same level

  9. case class Introspect(schema: Schema, child: Query) extends Query with Product with Serializable

    Evaluates an introspection query relative to schema

  10. case class Limit(num: Int, child: Query) extends Query with Product with Serializable

    Limits the results of list-producing continuation child to num elements

  11. case class Narrow(subtpe: TypeRef, child: Query) extends Query with Product with Serializable

    The result of child if the focus is of type subtpe, Empty otherwise.

  12. case class Offset(num: Int, child: Query) extends Query with Product with Serializable

    Drops the first num elements of list-producing continuation child.

  13. case class OrderBy(selections: OrderSelections, child: Query) extends Query with Product with Serializable

    Orders the results of list-producing continuation child by fields specified by selections.

  14. case class OrderSelection[T](term: Term[T], ascending: Boolean = true, nullsLast: Boolean = true)(implicit evidence$1: Order[T]) extends Product with Serializable
  15. case class OrderSelections(selections: List[OrderSelection[_]]) extends Product with Serializable
  16. case class Select(name: String, alias: Option[String], child: Query) extends Query with Product with Serializable

    Select field name possibly aliased, and continue with child

  17. case class TransformCursor(f: (Cursor) => Result[Cursor], child: Query) extends Query with Product with Serializable

    Uses the supplied function to compute a continuation Cursor from the current Cursor.

  18. case class Unique(child: Query) extends Query with Product with Serializable

    Continues with single-element-list-producing child and yields the single element

  19. case class UntypedFragment(name: String, tpnme: String, directives: List[Directive], child: Query) extends Product with Serializable

    Precursor of a fragment definition before compilation

  20. case class UntypedFragmentSpread(name: String, directives: List[Directive]) extends Query with Product with Serializable

    Representation of a fragment spread prior to comilation.

    Representation of a fragment spread prior to comilation.

    During compilation this node will be replaced by its definition, guarded by a Narrow corresponding to the type condition of the fragment.

  21. case class UntypedInlineFragment(tpnme: Option[String], directives: List[Directive], child: Query) extends Query with Product with Serializable

    Representation of an inline fragment prior to comilation.

    Representation of an inline fragment prior to comilation.

    During compilation this node will be replaced by its child, guarded by a Narrow corresponding to the type condition of the fragment, if any.

  22. case class UntypedSelect(name: String, alias: Option[String], args: List[Binding], directives: List[Directive], child: Query) extends Query with Product with Serializable

    Precursor of a Select node, containing uncompiled field arguments and directives.

  23. case class UntypedVarDef(name: String, tpe: Ast.Type, default: Option[Value], directives: List[Directive]) extends Product with Serializable

    Precursor of a variable definition before compilation

  24. type UntypedVarDefs = List[UntypedVarDef]
  25. type VarDefs = List[InputValue]
  26. type Vars = Map[String, (Type, Value)]

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. def alignResultName(source: Query, target: Query): Option[Query]

    Renames the root of target to match source if possible.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def childContext(c: Context, query: Query): Result[Context]
  7. def children(q: Query): List[Query]

    Yields the top-level field selections of the supplied query.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def extractChild(query: Query): Option[Query]

    Yields the top-level field selection of the supplied Query if it is unique, None otherwise.

  12. def fieldAlias(query: Query, fieldName: String): Option[String]

    Returns the alias, if any, of the top-level field fieldName in the supplied query.

  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hasField(query: Query, fieldName: String): Boolean

    True if fieldName is a top-level selection of the supplied query, false otherwise.

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def mapFields(query: Query)(f: (Query) => Query): Query

    Tranform the children of query using the supplied function.

  19. def mapFieldsR(query: Query)(f: (Query) => Result[Query]): Result[Query]

    Tranform the children of query using the supplied function.

  20. def mergeQueries(qs: List[Query]): Query

    Merge the given queries as a single query

  21. def mkPathQuery(paths: List[List[String]]): List[Query]

    Construct a query which yields all the supplied paths

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def renameRoot(q: Query, rootName: String): Option[Query]
  26. def resultName(q: Query): Option[String]

    Computes the possibly aliased result name of the supplied query if it is unique, None otherwise.

  27. def rootName(q: Query): Option[(String, Option[String])]

    Computes the root name and optional alias of the supplied query if it is unique, None otherwise.

  28. def substChild(query: Query, newChild: Query): Option[Query]

    Yields the supplied query with its the top-level field selection of the supplied replaced with newChild if it is unique, None otherwise.

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def ungroup(query: Query): List[Query]

    Yields a list of the top level queries of the supplied, possibly grouped query.

  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. case object Empty extends Query with Product with Serializable

    The terminal query

  36. object FilterOrderByOffsetLimit

    Constructor/extractor for nested Filter/OrderBy/Limit/Offset patterns in the query algebra

  37. object Select extends Serializable
  38. object TypeCase

    Extractor for grouped Narrow patterns in the query algebra

Inherited from AnyRef

Inherited from Any

Ungrouped