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

Guard against duplicate fragment names in near-operations-file #2139

Merged
merged 1 commit into from Jul 11, 2019
Merged

Guard against duplicate fragment names in near-operations-file #2139

merged 1 commit into from Jul 11, 2019

Conversation

mvestergaard
Copy link
Contributor

@mvestergaard mvestergaard commented Jul 9, 2019

Right now if you have multiple fragments with the same name, it will not fail, and you may end up with the wrong fragment being used.

Ideally I would prefer that it figured out using the correct fragment based on the imports in the source file, however that could be pretty complicated.

For now, this will at least prevent you from having duplicate fragment names.

@dotansimha
Copy link
Owner

dotansimha commented Jul 11, 2019

That's great! Thank you @mvestergaard !

@mvestergaard
Copy link
Contributor Author

Done

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.

None yet

2 participants