class QueryInterpreter[F[_]] extends AnyRef
- Source
- queryinterpreter.scala
- Alphabetic
- By Inheritance
- QueryInterpreter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cursorCompatible(tpe: Type, cursorTpe: Type): Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 run(query: Query, rootTpe: Type, env: Env): Stream[F, Result[Json]]
Interpret
query
with expected typerootTpe
.Interpret
query
with expected typerootTpe
.The query is fully interpreted, including deferred or staged components.
GraphQL errors are accumulated in the result.
- def runFields(query: Query, tpe: Type, cursor: Cursor): Result[List[(String, ProtoJson)]]
Interpret
query
againstcursor
, yielding a collection of fields.Interpret
query
againstcursor
, yielding a collection of fields.If the query is valid, the field subqueries will all be valid fields of the enclosing type
tpe
and the resulting fields may be used to build a Json object of typetpe
. If the query is invalid errors will be returned on the left hand side of the result. - def runList(query: Query, tpe: Type, parent: Cursor, unique: Boolean, nullable: Boolean): Result[ProtoJson]
- def runOneShot(query: Query, rootTpe: Type, rootCursor: Cursor): F[Result[ProtoJson]]
Run a non-subscription query yielding a single result.
- def runRootValue(query: Query, rootTpe: Type, parentCursor: Cursor): F[Result[ProtoJson]]
Interpret
query
with expected typerootTpe
.Interpret
query
with expected typerootTpe
.At most one stage will be run and the result may contain deferred components.
Errors are accumulated on the
Left
of the result. - def runSubscription(query: Query, rootTpe: Type, rootCursor: Cursor): Stream[F, Result[ProtoJson]]
Run a subscription query yielding a stream of results.
- def runValue(query: Query, tpe: Type, cursor: Cursor): Result[ProtoJson]
Interpret
query
againstcursor
with expected typetpe
.Interpret
query
againstcursor
with expected typetpe
.If the query is invalid errors will be returned on the left hand side of the result.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()