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 duplicate fragment bug for v3 #778

Merged
merged 4 commits into from
May 8, 2018
Merged

Fix duplicate fragment bug for v3 #778

merged 4 commits into from
May 8, 2018

Conversation

mfix22
Copy link
Contributor

@mfix22 mfix22 commented May 8, 2018

  • If this PR is a new feature, reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass
  • Update CHANGELOG.md with your change. Include a description of your change, link to PR (always) and issue (if applicable). Add your CHANGELOG entry under vNEXT. Do not create a new version number for your change yourself.

@@ -114,6 +114,7 @@ function filterDocumentToSchema(
});
});

const fragmentSet = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make this = Object.create(null) so we don't inherit any truthy values from Object.prototype by accident.

@benjamn benjamn merged commit d920eba into ardatan:master May 8, 2018
@mfix22 mfix22 deleted the fix-fragment-duplicates branch May 8, 2018 18:15
Druotic pushed a commit to Druotic/graphql-tools that referenced this pull request May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants