Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #5201 ...
dimatillck opened this issue Mar 25, 2022 · 0 comments

Comments

@dimatillck
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant