Structure representing parsed HTTP parameters for GraphQL operation
- Full name:
\GraphQL\Server\OperationParams
Id of the query (when using persistent queries).
public string $queryId
Valid aliases (case-insensitive):
- id
- queryId
- documentId
public string $query
public string $operation
public array|null $variables
public array|null $extensions
private array $originalInput
private bool $readOnly
Creates an instance from given array
public static create(array $params, bool $readonly = false): \GraphQL\Server\OperationParams
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$params |
array | |
$readonly |
bool |
public getOriginalInput(string $key): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$key |
string |
Indicates that operation is executed in read-only context (e.g. via HTTP GET request)
public isReadOnly(): bool