adjust GraphQLResolveInfo to remove breaking change from v16#4303
adjust GraphQLResolveInfo to remove breaking change from v16#4303yaacovCR wants to merge 1 commit intographql:mainfrom
Conversation
graphql#3811 internally preserved the sources of variable values so that we could properly replace variables within complex scalars, but it also exposed this within the GraphQLResolveInfo interface available to resolvers in a breaking manner, by changing the type of the `variableValues` property. This PR reverts the change to the `variableValues` property, but exposed the extended variable information under a new `variableValuesWithSources` property.
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
|
Not 100% sure about this: from the what's new in v17 WIP at #4198:
I forgot to write there explicitly that we changed the type of As of now, Is there a way to make this even less breaking? Should we skip this PR and just be 100% consistent. Questions! |
|
I'm favoring today just leaving things as is for consistency, feedback welcome! |
|
Closing for now! |
#3811 internally preserved the sources of variable values so that we could properly replace variables within complex scalars, but it also exposed this within the GraphQLResolveInfo interface available to resolvers in a breaking manner, by changing the type of the
variableValuesproperty.This PR reverts the change to the
variableValuesproperty, but exposed the extended variable information under a newvariableValuesWithSourcesproperty.