class HTTPMethodMiddleware implements QueryMiddleware (View source)

Ensures mutations use POST requests

Methods

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)

Parameters

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

Return Value

ExecutionResult|array

Result either as an ExecutionResult object or raw array