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

generateSchemaHash: changes necessary for graphql@16.0.0 #5664

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

IvanGoncharov
Copy link
Member

No description provided.

const documentAST = parse(introspectionQuery);
const result = execute(schema, documentAST) as ExecutionResult;
const document = parse(introspectionQuery);
const result = execute({ schema, document }) as ExecutionResult<IntrospectionQuery>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the main change: in v16.0.0 we dropped support for positional args to execute.

@glasser
Copy link
Member

glasser commented Aug 27, 2021

Do we need to do what's done in #5663 as well? Or is this just one piece of working towards v16 compatibility?

Copy link
Member

@glasser glasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable, though I'm curious how we're testing this.

@IvanGoncharov IvanGoncharov merged commit 9e93140 into apollographql:main Aug 30, 2021
@IvanGoncharov
Copy link
Member Author

though I'm curious how we're testing this.

I update package.json locally.
Can't update it yet, since a bunch of fixes is required in external libs (graphql-tools, graphql-client, etc.)

@glasser
Copy link
Member

glasser commented Oct 1, 2021

@IvanGoncharov FYI, I noticed in retrospect that this file didn't have a CHANGELOG entry. Was that intentional, since it doesn't actually get us all the way to graphql 16 compatibility yet?

@IvanGoncharov
Copy link
Member Author

@glasser Yes, was a partial change.
Will add a line to changelog once we have v16.0.0 listed in peerDependencies.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants