Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
None
Description
GraphQL fails if there is a dash "-" in the content type group. The following error occurs
[2019-04-09 07:37:59] request.CRITICAL: Uncaught PHP Exception Overblog\GraphQLBundle\Resolver\UnresolvableException: "Could not found type with alias "DomainGroupFoo-Bar". Do you forget to define it?" at /app/vendor/overblog/graphql-bundle/src/Resolver/TypeResolver.php line 43 {"exception":"[object] (Overblog\\GraphQLBundle\\Resolver\\UnresolvableException(code: 0): Could not found type with alias \"DomainGroupE-katalog\". Do you forget to define it? at /app/vendor/overblog/graphql-bundle/src/Resolver/TypeResolver.php:43)"} []
Steps to reproduce:
1) Create new content type group "Foo-Bar"
2) Create new content type in group
3) Generate GraphQL Schema
4) Open GraphiQL or another client
5) Get error when downloading schema
NOTE: This will likely fail with other special characters as well