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

Don't apply queryTransforms to the first level #413

Closed
stubailo opened this issue Jul 18, 2016 · 1 comment
Closed

Don't apply queryTransforms to the first level #413

stubailo opened this issue Jul 18, 2016 · 1 comment
Assignees

Comments

@stubailo
Copy link
Contributor

If we have an addTypename transform, we want this:

{
  myRootField {
    stuff
  }
}

To become this:

{
  myRootField {
    __typename
    stuff
  }
}

And not this:

{
  __typename
  myRootField {
    __typename
    stuff
  }
}

So we don't want to add fields to the root mutation or root query selection set on operation definitions.

@Poincare
Copy link
Contributor

Done with #463

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants