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 MapFields to transform all field nodes #1545

Merged
merged 1 commit into from May 27, 2020

Conversation

yaacovCR
Copy link
Collaborator

@yaacovCR yaacovCR commented May 27, 2020

MapFields (really should be MapFieldNodes, this should be changed in next major release) provides a quick way to modify field nodes for object types by specification of a map of type/field names as opposed to a function.

this backwards-compatible change allows MapFields to work for interfaces and root types.

@theguild-bot
Copy link
Collaborator

theguild-bot commented May 27, 2020

The latest changes of this PR are available as alpha in npm: 6.0.4-alpha-5d8aad8.0

Quickly update your package.json by running:

npx match-version @graphql-tools 6.0.4-alpha-5d8aad8.0

@yaacovCR yaacovCR marked this pull request as draft May 27, 2020 18:16
MapFields (really should be MapFieldNodes, this should be changed in next major release) currently provides a quick way to modify field nodes for object types by specification of a map of type/field names as opposed to a function.

this backwards-compatible change allows MapFields to work for interfaces and root types.
@yaacovCR yaacovCR force-pushed the allow-map-fields-to-transform-interfaces branch from 6ded3a1 to 1a12d7a Compare May 27, 2020 18:19
@yaacovCR yaacovCR marked this pull request as ready for review May 27, 2020 18:58
@yaacovCR yaacovCR merged commit 5d8aad8 into master May 27, 2020
@yaacovCR yaacovCR deleted the allow-map-fields-to-transform-interfaces branch May 27, 2020 18:59
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