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

fix no-duplicate-fields, compare selections with fragment spreads and inline fragments #975

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dimaMachina
Copy link
Collaborator

No description provided.

@dimaMachina dimaMachina marked this pull request as ready for review February 21, 2022 12:18
@dimaMachina dimaMachina added the status/parked This task has been temporarily parked - No work is currently underway label Oct 10, 2022
Copy link
Member

@saihaj saihaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we think of using fragments all the way down then this can lead to a lot of false positives.

@dimaMachina
Copy link
Collaborator Author

If we think of using fragments all the way down then this can lead to a lot of false positives.

An example of a false positive?

Comment on lines +56 to +65
users {
id
...UserFullFields # email #email
name #3
...UserFields # email firstName
... on User {
id #6
name #7
email #8
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@B2o5T imagine for some nested UI components it is likely you are using UserFullFields in one place and UserFields in some other place and it can actually be a valid use case but this rule would mark that as error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/parked This task has been temporarily parked - No work is currently underway
Development

Successfully merging this pull request may close these issues.

3 participants