interface QueryHandlerInterface (View source)

Query handlers are responsible for applying a query as a string to a Schema object and returning a result.

Methods

public
array
query(Schema $schema, string|DocumentNode $query, array $params = [])

No description

public
array
serialiseResult(ExecutionResult $executionResult)

Serialise a Graphql result object for output

public
addContextProvider(ContextProvider $provider)

No description

Details

array query(Schema $schema, string|DocumentNode $query, array $params = [])

No description

Parameters

Schema $schema
string|DocumentNode $query
array $params

Return Value

array

array serialiseResult(ExecutionResult $executionResult)

Serialise a Graphql result object for output

Parameters

ExecutionResult $executionResult

Return Value

array

QueryHandlerInterface addContextProvider(ContextProvider $provider)

No description

Parameters

ContextProvider $provider

Return Value

QueryHandlerInterface