diff --git a/src/Executor/ExecutionResult.php b/src/Executor/ExecutionResult.php index c9ec782..d998b96 100644 --- a/src/Executor/ExecutionResult.php +++ b/src/Executor/ExecutionResult.php @@ -1,7 +1,6 @@ data) { $result['data'] = $this->data; } - + if (!empty($this->extensions)) { $result['extensions'] = (array) $this->extensions; } diff --git a/src/Executor/Values.php b/src/Executor/Values.php index c8353c4..372d63f 100644 --- a/src/Executor/Values.php +++ b/src/Executor/Values.php @@ -13,21 +13,16 @@ use GraphQL\Language\AST\NodeList; use GraphQL\Language\AST\VariableNode; use GraphQL\Language\AST\VariableDefinitionNode; use GraphQL\Language\Printer; -use GraphQL\Type\Definition\EnumType; -use GraphQL\Type\Definition\ScalarType; use GraphQL\Type\Schema; use GraphQL\Type\Definition\Directive; use GraphQL\Type\Definition\FieldDefinition; -use GraphQL\Type\Definition\InputObjectType; use GraphQL\Type\Definition\InputType; -use GraphQL\Type\Definition\ListOfType; use GraphQL\Type\Definition\NonNull; use GraphQL\Type\Definition\Type; use GraphQL\Utils\AST; use GraphQL\Utils\TypeInfo; use GraphQL\Utils\Utils; use GraphQL\Utils\Value; -use GraphQL\Validator\DocumentValidator; class Values { diff --git a/src/Language/AST/Node.php b/src/Language/AST/Node.php index 6b42fe2..e12deec 100644 --- a/src/Language/AST/Node.php +++ b/src/Language/AST/Node.php @@ -1,7 +1,6 @@