mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
TASK: Allow InputObjectType extensions
This commit is contained in:
parent
1d15ae7f3e
commit
b0ee36feb4
@ -6,6 +6,7 @@ namespace GraphQL\Type\Definition;
|
|||||||
|
|
||||||
use GraphQL\Error\InvariantViolation;
|
use GraphQL\Error\InvariantViolation;
|
||||||
use GraphQL\Language\AST\InputObjectTypeDefinitionNode;
|
use GraphQL\Language\AST\InputObjectTypeDefinitionNode;
|
||||||
|
use GraphQL\Language\AST\InputObjectTypeExtensionNode;
|
||||||
use GraphQL\Utils\Utils;
|
use GraphQL\Utils\Utils;
|
||||||
use function call_user_func;
|
use function call_user_func;
|
||||||
use function is_array;
|
use function is_array;
|
||||||
@ -24,6 +25,9 @@ class InputObjectType extends Type implements InputType, NamedType
|
|||||||
/** @var InputObjectField[] */
|
/** @var InputObjectField[] */
|
||||||
private $fields;
|
private $fields;
|
||||||
|
|
||||||
|
/** @var InputObjectTypeExtensionNode[] */
|
||||||
|
public $extensionASTNodes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param mixed[] $config
|
* @param mixed[] $config
|
||||||
@ -40,6 +44,7 @@ class InputObjectType extends Type implements InputType, NamedType
|
|||||||
$this->name = $config['name'];
|
$this->name = $config['name'];
|
||||||
$this->astNode = $config['astNode'] ?? null;
|
$this->astNode = $config['astNode'] ?? null;
|
||||||
$this->description = $config['description'] ?? null;
|
$this->description = $config['description'] ?? null;
|
||||||
|
$this->extensionASTNodes = $config['extensionASTNodes'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user