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

filterSchema argumentFilter provides incorrect typeName #5930

Open
4 tasks
henryqdineen opened this issue Feb 23, 2024 · 0 comments
Open
4 tasks

filterSchema argumentFilter provides incorrect typeName #5930

henryqdineen opened this issue Feb 23, 2024 · 0 comments

Comments

@henryqdineen
Copy link
Contributor

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

If you have a schema with a non-default root field arguemntField() will be provided an incorrect typeName argument.

To Reproduce Steps to reproduce the behavior:

https://stackblitz.com/edit/stackblitz-starters-eejk1l?file=index.js

Expected behavior

The typeName argument should be the name of the root type and not just the default name.

Environment:

  • OS: Mac
  • @graphql-tools/utils: 10.1.0
  • NodeJS: v18.18.0

Additional context

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

No branches or pull requests

1 participant