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

Executors break field aliasing on stitched schemas

Open v-morlock opened this issue 2 years 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

When using an executor combined with delegateToSchema and stitchSchemas, aliasing fields returns null instead of the aliased value

To Reproduce Steps to reproduce the behavior:

Run npm start here: https://stackblitz.com/edit/node-qhocq7?file=index.ts

Expected behavior

Both versions should behave the same

Environment:

  • OS: macos
  • "@graphql-tools/delegate": "^9.0.26", "@graphql-tools/mock": "^8.7.18", "@graphql-tools/schema": "^9.0.16", "@graphql-tools/stitch": "^8.7.40",
  • NodeJS: 16

v-morlock avatar Feb 13 '23 07:02 v-morlock