Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
+4
-4
@@ -250,10 +250,10 @@ class OverlappingFieldsCanBeMerged extends ValidationRule
|
||||
$fieldName = $selection->name->value;
|
||||
$fieldDef = null;
|
||||
if ($parentType instanceof ObjectType ||
|
||||
$parentType instanceof InterfaceType) {
|
||||
$tmp = $parentType->getFields();
|
||||
if (isset($tmp[$fieldName])) {
|
||||
$fieldDef = $tmp[$fieldName];
|
||||
$parentType instanceof InterfaceType
|
||||
) {
|
||||
if ($parentType->hasField($fieldName)) {
|
||||
$fieldDef = $parentType->getField($fieldName);
|
||||
}
|
||||
}
|
||||
$responseName = $selection->alias ? $selection->alias->value : $fieldName;
|
||||
|
||||
Reference in new issue
Block a user