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 bug in externalUnused validation #2919

Merged
merged 2 commits into from
Jun 25, 2019
Merged

Conversation

trevor-scheer
Copy link
Member

When looping through a fieldSet's selections, the selectionIncludesField
function could return false prematurely. Instead, it should continue
looping through all the adjacent selections before either returning
true at some point or finally returning false if the true case is
never encountered.

When looping through a fieldSet's selections, the selectionIncludesField
function could return false prematurely. Instead, it should continue
looping through all the adjacent selections before either returning
true at some point or finally returning false if the true case is
never encountered.
Copy link
Contributor

@evans evans left a comment

Choose a reason for hiding this comment

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

@trevor-scheer trevor-scheer merged commit 68f3124 into master Jun 25, 2019
@trevor-scheer trevor-scheer deleted the trevor/requires-bug branch June 25, 2019 21:40
abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
When looping through a fieldSet's selections, the selectionIncludesField
function could return false prematurely. Instead, it should continue
looping through all the adjacent selections before either returning
true at some point or finally returning false if the true case is
never encountered.
Apollo-Orig-Commit-AS: apollographql/apollo-server@68f3124
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 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

Successfully merging this pull request may close these issues.

2 participants