Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update running-an-express-graphql-server.mdx
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. This fix ensures that the GraphQL API properly resolves queries.
- Loading branch information