Skip to content

Allow addMocksToSchema to pass validation options to addResolversToSchema #4434

@grxy

Description

@grxy

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

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