SubqueryInterpreter

gql.server.interpreter.SubqueryInterpreter
See theSubqueryInterpreter companion object
trait SubqueryInterpreter[F[_]]

The SubqueryInterpreter recursively runs through the AST and performs a multitude of tasks:

  • Runs the gql.resolver.Resolver/gql.resolver.Steps defined in the query.

  • Accumulates errors that occur during the evaluation of the query.

  • Logs streams that have been subscribed to.

  • Batches computations that have been marked as batchable.

Attributes

Companion
object
Source
SubqueryInterpreter.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type W[A] = WriterT[F, Chain[EvalFailure], A]

Attributes

Source
SubqueryInterpreter.scala

Value members

Abstract methods

def runDataField[I](df: PreparedDataField[F, I, _], input: Chain[EvalNode[F, I]]): W[Chain[Json]]

Attributes

Source
SubqueryInterpreter.scala
def runEdgeCont[I, O](cs: Chain[IndexedData[F, I]], cont: StepCont[F, I, O]): W[Chain[(Int, Json)]]

Attributes

Source
SubqueryInterpreter.scala
def runFields[I](dfs: List[PreparedField[F, I]], in: Chain[EvalNode[F, I]]): W[Chain[Map[String, Json]]]

Attributes

Source
SubqueryInterpreter.scala
def runStep[I, C, O](inputs: Chain[IndexedData[F, I]], step: PreparedStep[F, I, C], cont: StepCont[F, C, O]): W[Chain[(Int, Json)]]

Attributes

Source
SubqueryInterpreter.scala
def startNext[I](s: Prepared[F, I], in: Chain[EvalNode[F, I]]): W[Chain[Json]]

Attributes

Source
SubqueryInterpreter.scala