graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

Allow `addMocksToSchema` to pass validation options to `addResolversToSchema`

Open grxy opened this issue 2 years ago • 0 comments

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

grxy avatar May 03 '22 19:05 grxy