Skip to content

Latest commit

 

History

History
203 lines (75 loc) · 1.42 KB

OperationParams.md

File metadata and controls

203 lines (75 loc) · 1.42 KB

OperationParams

Structure representing parsed HTTP parameters for GraphQL operation

  • Full name: \GraphQL\Server\OperationParams

Properties

queryId

Id of the query (when using persistent queries).

public string $queryId

Valid aliases (case-insensitive):

  • id
  • queryId
  • documentId

query

public string $query

operation

public string $operation

variables

public array|null $variables

extensions

public array|null $extensions

originalInput

private array $originalInput

readOnly

private bool $readOnly

Methods

create

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

getOriginalInput

public getOriginalInput(string $key): mixed

Parameters:

Parameter Type Description
$key string

isReadOnly

Indicates that operation is executed in read-only context (e.g. via HTTP GET request)

public isReadOnly(): bool