BatchExecutor

sangria.execution.batch.BatchExecutor$

EXPERIMENTAL

Batch query executor which provides following features:

  • Allows specifying multiple operationNames when executing a GraphQL query document. All operations would be executed in order inferred from the dependencies between queries.
  • Support for @export(as: "foo") directive. This directive allows you to save the results of the query execution and then use it as a variable in a different query within the same document. This provides a way to define data dependencies between queries.
  • When used with @export directive, the variables would be automatically inferred by the execution engine, so you don't need to declare them explicitly (though you can)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def executeBatch[Ctx, Root, Input, T](schema: Schema[Ctx, Root], queryAst: Document, operationNames: Seq[String], userContext: Ctx, root: Root, variables: Input, queryValidator: QueryValidator, deferredResolver: DeferredResolver[Ctx], exceptionHandler: ExceptionHandler, deprecationTracker: DeprecationTracker, middleware: List[Middleware[Ctx]], maxQueryDepth: Option[Int], queryReducers: List[QueryReducer[Ctx, _]], inferVariableDefinitions: Boolean)(implicit executionContext: ExecutionContext, marshaller: SymmetricMarshaller[T], um: InputUnmarshaller[Input], scheme: ExecutionScheme): Result[Ctx, T]

EXPERIMENTAL

EXPERIMENTAL

Attributes

Concrete fields

val AsArg: Argument[String & Tagged[CoercedScalaResult]]