Skip to content

fixed wrong variable name #4351

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

Merged
merged 1 commit into from
Mar 8, 2025
Merged

fixed wrong variable name #4351

merged 1 commit into from
Mar 8, 2025

Conversation

fto-dev
Copy link
Contributor

@fto-dev fto-dev commented Feb 26, 2025

Issue
The server throws an error because the root variable is not defined. The correct variable name should be rootValue, which was previously declared in the code.

Fix
Updated rootValue in the createHandler function to use the correct variable name.

Changes
Replaced root with rootValue in the GraphQL handler configuration.

Issue
The server throws an error because the root variable is not defined. The correct variable name should be rootValue, which was previously declared in the code.

Fix
Updated rootValue in the createHandler function to use the correct variable name.

Changes
Replaced root with rootValue in the GraphQL handler configuration.
@fto-dev fto-dev requested a review from a team as a code owner February 26, 2025 06:09
Copy link

linux-foundation-easycla bot commented Feb 26, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

github-actions bot commented Mar 8, 2025

Hi @fto-dev, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@JoviDeCroock JoviDeCroock merged commit 6b253e7 into graphql:16.x.x Mar 8, 2025
18 checks passed
JoviDeCroock pushed a commit that referenced this pull request May 4, 2025
Issue
The server throws an error because the root variable is not defined. The
correct variable name should be rootValue, which was previously declared
in the code.

Fix
Updated rootValue in the createHandler function to use the correct
variable name.

Changes
Replaced root with rootValue in the GraphQL handler configuration.
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.

2 participants