GraphQLExecutor
in package
Table of Contents
Properties
- $authHeader : string|null
- $endpoint : string
- $http : Client
Methods
- __construct() : mixed
- execute() : array<string|int, mixed>
- Execute query/mutation and return decoded JSON (data or errors)
Properties
$authHeader
protected
string|null
$authHeader
$endpoint
protected
string
$endpoint
$http
protected
Client
$http
Methods
__construct()
public
__construct(string $endpoint[, string|null $authHeader = null ]) : mixed
Parameters
- $endpoint : string
- $authHeader : string|null = null
execute()
Execute query/mutation and return decoded JSON (data or errors)
public
execute(string $query[, array<string|int, mixed> $variables = [] ]) : array<string|int, mixed>
Parameters
- $query : string
- $variables : array<string|int, mixed> = []