object Query
- Source
- query.scala
- Alphabetic
- By Inheritance
- Query
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Binding(name: String, value: Value) extends Product with Serializable
- 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 andchild
yielding a continuation query which will be evaluated by the interpreter identified bycomponentId
. - case class Count(child: Query) extends Query with Product with Serializable
Computes the number of top-level elements of
child
- 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. - trait EffectHandler[F[_]] extends AnyRef
- case class Environment(env: Env, child: Query) extends Query with Product with Serializable
Add
env
to the environment for the continuationchild
- case class Filter(pred: Predicate, child: Query) extends Query with Product with Serializable
Retains only elements satisfying
pred
and continues withchild
- case class Group(queries: List[Query]) extends Query with Product with Serializable
A Group of sibling queries at the same level
- case class Introspect(schema: Schema, child: Query) extends Query with Product with Serializable
Evaluates an introspection query relative to
schema
- case class Limit(num: Int, child: Query) extends Query with Product with Serializable
Limits the results of list-producing continuation
child
tonum
elements - case class Narrow(subtpe: TypeRef, child: Query) extends Query with Product with Serializable
The result of
child
if the focus is of typesubtpe
,Empty
otherwise. - case class Offset(num: Int, child: Query) extends Query with Product with Serializable
Drops the first
num
elements of list-producing continuationchild
. - case class OrderBy(selections: OrderSelections, child: Query) extends Query with Product with Serializable
Orders the results of list-producing continuation
child
by fields specified byselections
. - case class OrderSelection[T](term: Term[T], ascending: Boolean = true, nullsLast: Boolean = true)(implicit evidence$1: Order[T]) extends Product with Serializable
- case class OrderSelections(selections: List[OrderSelection[_]]) extends Product with Serializable
- case class Select(name: String, alias: Option[String], child: Query) extends Query with Product with Serializable
Select field
name
possibly aliased, and continue withchild
- 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 currentCursor
. - case class Unique(child: Query) extends Query with Product with Serializable
Continues with single-element-list-producing
child
and yields the single element - case class UntypedFragment(name: String, tpnme: String, directives: List[Directive], child: Query) extends Product with Serializable
Precursor of a fragment definition before compilation
- 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. - 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. - 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. - 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
- type UntypedVarDefs = List[UntypedVarDef]
- type VarDefs = List[InputValue]
- type Vars = Map[String, (Type, Value)]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def alignResultName(source: Query, target: Query): Option[Query]
Renames the root of
target
to matchsource
if possible. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def childContext(c: Context, query: Query): Result[Context]
- def children(q: Query): List[Query]
Yields the top-level field selections of the supplied query.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extractChild(query: Query): Option[Query]
Yields the top-level field selection of the supplied Query if it is unique,
None
otherwise. - def fieldAlias(query: Query, fieldName: String): Option[String]
Returns the alias, if any, of the top-level field
fieldName
in the supplied query. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasField(query: Query, fieldName: String): Boolean
True if
fieldName
is a top-level selection of the supplied query, false otherwise. - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapFields(query: Query)(f: (Query) => Query): Query
Tranform the children of
query
using the supplied function. - def mapFieldsR(query: Query)(f: (Query) => Result[Query]): Result[Query]
Tranform the children of
query
using the supplied function. - def mergeQueries(qs: List[Query]): Query
Merge the given queries as a single query
- def mkPathQuery(paths: List[List[String]]): List[Query]
Construct a query which yields all the supplied paths
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def renameRoot(q: Query, rootName: String): Option[Query]
- def resultName(q: Query): Option[String]
Computes the possibly aliased result name of the supplied query if it is unique,
None
otherwise. - 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. - 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. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def ungroup(query: Query): List[Query]
Yields a list of the top level queries of the supplied, possibly grouped query.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object Empty extends Query with Product with Serializable
The terminal query
- object FilterOrderByOffsetLimit
Constructor/extractor for nested Filter/OrderBy/Limit/Offset patterns in the query algebra
- object Select extends Serializable
- object TypeCase
Extractor for grouped Narrow patterns in the query algebra