We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bac625 commit 970ca0bCopy full SHA for 970ca0b
src/Types/EntityObjectType.php
@@ -143,7 +143,11 @@ private function validateReferenceResolver(): void
143
*/
144
private function validateReferenceKeys(array $ref): void
145
{
146
- Utils::invariant(isset($ref[FederatedSchema::RESERVED_FIELD_TYPE_NAME]), 'Type name must be provided in the reference.');
+ Utils::invariant(
147
+ isset($ref[FederatedSchema::RESERVED_FIELD_TYPE_NAME])
148
+ && $ref[FederatedSchema::RESERVED_FIELD_TYPE_NAME] === $this->config['name'],
149
+ 'Type name must be provided in the reference.'
150
+ );
151
}
152
153
/**
0 commit comments