Read-only AST types

ref: graphql/graphql-js#1121
This commit is contained in:
Daniel Tschinder 2018-02-11 18:28:34 +01:00
parent ff63e07b05
commit 74854d55a0

View File

@ -204,9 +204,9 @@ class ASTDefinitionBuilder
return [
'type' => $this->buildOutputType($field->type),
'description' => $this->getDescription($field),
'args' => $this->makeInputValues($field->arguments),
'args' => $field->arguments ? $this->makeInputValues($field->arguments) : null,
'deprecationReason' => $this->getDeprecationReason($field),
'astNode' => $field
'astNode' => $field,
];
}