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(core): Fix regression causing stringifyDocument to not reprint after formatDocument #2871

Merged
merged 7 commits into from
Dec 9, 2022

Conversation

JoviDeCroock
Copy link
Collaborator

@JoviDeCroock JoviDeCroock commented Dec 9, 2022

Summary

Related to #2869 reproduces the issue.

this looks to be the problem, when we use createRequest we fill in gql as the source name and don't update the printed string when looping over it with formatDocument. When we use gql the name will be graphql request hence not hitting this clause.

The thing concerning me here is if people would be implementing local-only exchanges whether that would mess with i.e. them removing a field when seeing @local

@JoviDeCroock JoviDeCroock requested a review from kitten December 9, 2022 09:19
@JoviDeCroock JoviDeCroock force-pushed the create-reproduction-missing-typename branch from 189d811 to 6673abf Compare December 9, 2022 09:21
@JoviDeCroock JoviDeCroock force-pushed the create-reproduction-missing-typename branch from 1651fa4 to 0234037 Compare December 9, 2022 09:23
@JoviDeCroock JoviDeCroock marked this pull request as ready for review December 9, 2022 09:24
@kitten kitten changed the title fix(core): missing __typename fix(core): Fix regression causing stringifyDocument to not reprint after formatDocument Dec 9, 2022
@JoviDeCroock JoviDeCroock merged commit 95f7156 into main Dec 9, 2022
@JoviDeCroock JoviDeCroock deleted the create-reproduction-missing-typename branch December 9, 2022 16:37
@github-actions github-actions bot mentioned this pull request Dec 9, 2022
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