Skip to content

Unable to split query configuration into several files #658

@kix

Description

@kix
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Version/Branch 0.13.0

Overblog\GraphQLBundle\DependencyInjection\Compiler\ConfigParserPass->checkTypesDuplication() disallows splitting queries and mutations into several files.

Imagine I have quite a lot of queries and mutations. The thing that would quite help me manage that is splitting: queries and mutations for x are in types/x.yaml looking something like:

Query: type: object config: description: "Public queries" fields: listXs: ... showSingleX: ...

However I'm currently unable to do so since the parser pass does not merge the configs (and maybe check for conflicts there), but instead treats overlapping keys as conflicts.

I see #169 has been opened but looks like it has gotten irrelevant to its author.

What I also would like to add is that typically Symfony treats same keys in config files as mergeable. E.g. services_test.yaml does not conflict with services.yaml, it just gets merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions