I'm going through the Quick Start guide using Symfony4 and flex, but I ran into a couple of issues:
Changing type: yaml to type: graphql causes an exception:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] The value "graphql" is not allowed for path "overblog_graphql.definitions.mappings.types.0.type". Permissible values: "yaml", "xml"
Because of missing types, I'm getting Unknown type with alias \"Query\" (verified service tag) exception when trying to do anything. Since the default configuration specifies that type, it would be great if it was included in the package or at least described in the doc how to create it to get a working graphql server easily.
After adding the snippet below to config/packages/graphql.yaml:
resolver_maps:
- App\Resolver\MyResolverMap
I'm getting another exception saying:
[Symfony\Component\Yaml\Exception\ParseException] A colon cannot be used in an unquoted mapping value at line 6 (near " - App\Resolver\MyResolverMap").
Overblog\GraphQLBundle\Resolver\ResolverMap class that you suggest to use when creating App\Resolver\MyResolverMap does not exist. Maybe it used to exist in the previous versions of the bundle and the documentation is just outdated?
Hey,
I'm going through the Quick Start guide using Symfony4 and flex, but I ran into a couple of issues:
type: yaml
totype: graphql
causes an exception:[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] The value "graphql" is not allowed for path "overblog_graphql.definitions.mappings.types.0.type". Permissible values: "yaml", "xml"
Because of missing types, I'm getting
Unknown type with alias \"Query\" (verified service tag)
exception when trying to do anything. Since the default configuration specifies that type, it would be great if it was included in the package or at least described in the doc how to create it to get a working graphql server easily.After adding the snippet below to
config/packages/graphql.yaml
:I'm getting another exception saying:
[Symfony\Component\Yaml\Exception\ParseException] A colon cannot be used in an unquoted mapping value at line 6 (near " - App\Resolver\MyResolverMap").
Overblog\GraphQLBundle\Resolver\ResolverMap
class that you suggest to use when creatingApp\Resolver\MyResolverMap
does not exist. Maybe it used to exist in the previous versions of the bundle and the documentation is just outdated?Any help would be greatly appreciated!