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

allow mutation type wrapping #1723

Merged
merged 1 commit into from Jul 2, 2020
Merged

allow mutation type wrapping #1723

merged 1 commit into from Jul 2, 2020

Conversation

yaacovCR
Copy link
Collaborator

@yaacovCR yaacovCR commented Jul 2, 2020

the blocker for this was that the default createProxyingResolverFn was changed to no longer hardcode the operation, but to rather infer it from the root type being stitched from.

This was in parallel to a similar change with the target fieldName which was helpful when making the RenameRootField transformer just a special case of the RenameObjectField transformer, but messes up the wrapping of mutations, because when the root fields in the wrapping subschema are the ones that actually do the proxying, and wrapping them with another type causes them to default to the query operation.

So, the default createProxyingResolverFn now hardcodes the operation, and all is well.

Addresses #1708

the blocker for this was that the default createProxyingResolverFn was changed to no longer hardcode the operation, but to rather infer it from the root type being stitched from.

This was in parallel to a similar change with the target fieldName which was helpful when making the RenameRootField transformer just a special case of the RenameObjectField transformer, but messes up the wrapping of mutations, because when the root fields in the wrapping subschema are the ones that actually do the proxying, and wrapping them with another type causes them to default to the query operation.

So, the default createProxyingResolverFn now hardcodes the operation, and all is well.
@theguild-bot
Copy link
Collaborator

theguild-bot commented Jul 2, 2020

The latest changes of this PR are available as alpha in npm: 6.0.13-alpha-ed567ad.0

Quickly update your package.json by running:

npx match-version @graphql-tools 6.0.13-alpha-ed567ad.0

@yaacovCR yaacovCR mentioned this pull request Jul 2, 2020
@yaacovCR yaacovCR merged commit ed567ad into master Jul 2, 2020
@yaacovCR yaacovCR deleted the pr/1722 branch July 2, 2020 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants