-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # composer.json # src/config/app.php # src/controllers/GraphqlController.php # src/services/Gql.php
- Loading branch information
Showing
7 changed files
with
94 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\events; | ||
|
||
use GraphQL\Type\Schema; | ||
use yii\base\Event; | ||
|
||
/** | ||
* ExecuteGqlQueryEvent event class. | ||
* | ||
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com> | ||
* @since 3.3.11 | ||
*/ | ||
class ExecuteGqlQueryEvent extends Event | ||
{ | ||
// Properties | ||
// ========================================================================= | ||
|
||
/** | ||
* @var Schema The GraphQL schema used for this query. | ||
*/ | ||
public $schemaDef; | ||
|
||
/** | ||
* @var string The GraphQL query being executed | ||
*/ | ||
public $query; | ||
|
||
/** | ||
* @var array The variables used for this query. | ||
*/ | ||
public $variables = []; | ||
|
||
/** | ||
* @var string|null The name of the operation to use if requestString contains multiple possible operations. | ||
*/ | ||
public $operationName; | ||
|
||
/** | ||
* @var mixed|null The context that is shared between all resolvers. | ||
*/ | ||
public $context; | ||
|
||
/** | ||
* @var mixed|null The root value to use when resolving the top-level object fields. | ||
*/ | ||
public $rootValue; | ||
|
||
/** | ||
* @var array|null The query result to be returned. | ||
*/ | ||
public $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters