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

Multiple fragments on sub types override each other #914

Closed
ahanabanerjee opened this issue Apr 14, 2021 · 0 comments · Fixed by #915
Closed

Multiple fragments on sub types override each other #914

ahanabanerjee opened this issue Apr 14, 2021 · 0 comments · Fixed by #915
Labels
bug Something isn't working

Comments

@ahanabanerjee
Copy link

Describe the bug
If a query has multiple fragments selecting the same sub type, the selected fields override each other

To Reproduce
Steps to reproduce the behavior: Run a query like

query Me {
  loggedInUser {
    id
    ...PicOne
    ...PicTwo
  }
}

fragment PicOne on User {
  profilePicture {
    id
    width
    height
  }
}

fragment PicTwo on User {
  profilePicture {
    id
    url
  }
}

Returns only the fields of the later fragment.

Expected behavior
It should merge the selected sub fields and return both values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants