drupal-graphql / drupal-graphql/graphql
Type not found in document when loading Extension for composable schema
- Dominant language
- PHP
- Stars
- 287
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
I've split out my more common types into the atimintestschema.graphqls file, my thought was these get resolved in AtiSchema.php, but it doesn't seem to find them.
When the Test Event extension is enabled, those types are then not found, and i get the following error:
```
The website encountered an unexpected error. Please try again later.
GraphQL\Error\Error: Type "Language" not found in document. in GraphQL\Utils\BuildSchema::GraphQL\Utils\{closure}() (line 149 of /opt/vendor/webonyx/graphql-php/src/Utils/BuildSchema.php).
GraphQL\Utils\ASTDefinitionBuilder->internalBuildType('Language', Object) (Line: 194)
GraphQL\Utils\ASTDefinitionBuilder->buildType(Object) (Line: 182)
GraphQL\Utils\ASTDefinitionBuilder->buildWrappedType(Object) (Line: 155)
....
```
I have attached my module thats more or less a min reproduction hopefully it provides some clues.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.