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 addMocksToSchema to pass validation options to addResolversToSchema #4434

Open
Tracked by #5201 ...
grxy opened this issue May 3, 2022 · 0 comments
Open
Tracked by #5201 ...

Comments

@grxy
Copy link
Contributor

grxy commented May 3, 2022

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

I am trying to create a mock server to mock externally-defined Apollo Federation subgraphs. I would like to use a generic set of resolvers that would apply to the entire composed schema without having to dynamically remove resolvers based on what field(s) and types are defined in a certain subgraph schema.

Describe the solution you'd like

addMocksToSchema accepts another optional parameter that is passed directly as the legacyInputValidationOptions parameter in addResolversToSchema.

Describe alternatives you've considered

N/A

Additional context

N/A

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

Successfully merging a pull request may close this issue.

1 participant