/
ExecuteGqlQueryEvent.php
55 lines (46 loc) · 1.21 KB
/
ExecuteGqlQueryEvent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\events;
use yii\base\Event;
/**
* ExecuteGqlQueryEvent event class.
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 3.3.11
*/
class ExecuteGqlQueryEvent extends Event
{
/**
* @var int|null The ID of the schema used for this request.
* @since 3.4.0
*/
public ?int $schemaId = null;
/**
* @var string The GraphQL query being executed
*/
public string $query;
/**
* @var array|null The variables used for this query.
*/
public ?array $variables = null;
/**
* @var string|null The name of the operation to use if requestString contains multiple possible operations.
*/
public ?string $operationName = null;
/**
* @var mixed The context that is shared between all resolvers.
*/
public mixed $context = null;
/**
* @var mixed The root value to use when resolving the top-level object fields.
*/
public mixed $rootValue = null;
/**
* @var array|null The query result to be returned.
*/
public ?array $result = null;
}