interface QueryMiddleware (View source)

Represents middleware for evaluating a graphql query

Methods

public
ExecutionResult|array
process(Schema $schema, string $query, array $context, array $vars, callable $next)

No description

Details

ExecutionResult|array process(Schema $schema, string $query, array $context, array $vars, callable $next)

No description

Parameters

Schema $schema
string $query
array $context
array $vars
callable $next

Return Value

ExecutionResult|array

Result either as an ExecutionResult object or raw array