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

requireResolversToMatchSchema: 'warn' throws an error

Open tvh opened this issue 1 year ago • 0 comments

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • [ ] 1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox

    Make sure to fork this template and run yarn generate in the terminal.

    Please make sure the GraphQL Tools package versions under package.json matches yours.

  • [ ] 2. A failing test has been provided
  • [ ] 3. A local solution has been provided
  • [ ] 4. A pull request is pending review

Describe the bug

Currently when I use requireResolversToMatchSchema: 'warn' in makeExecutableSchema, an error is thrown.

To Reproduce Steps to reproduce the behavior:

See failing test in https://github.com/ardatan/graphql-tools/pull/5775.

Expected behavior

makeExecutableSchema should run and output warnings.

Environment:

  • OS:
  • @graphql-tools/schema:
  • NodeJS: 20.9

Additional context

tvh avatar Dec 14 '23 17:12 tvh