graphql-tools
graphql-tools copied to clipboard
Allow `addMocksToSchema` to pass validation options to `addResolversToSchema`
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