Skip to content

Allow using merge directive without keyArg argument if resolver takes 0 arguments #4336

@dimatillck

Description

@dimatillck

Is your feature request related to a problem? Please describe.

Currently stitchingDirectivesValidator doesn't allow to use @merge directive without keyArg argument if resolver takes 0 arguments.

Describe the solution you'd like

Allow using @merge directive without keyArg argument if resolver takes 0 arguments

Additional context

Allow such use-case will be helpful for situations when there is a global object with fields resolved by different subschemas. An example of such use-case could be some global Stats Object which has different stat fields that are resolved by different subschemas, so there is nothing to pass to the merge resolver

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions