Skip to content

Replace your expressGraphQL with graphqlHTTP as it was destructured #4

@Harrish-Selvarajah

Description

@Harrish-Selvarajah

"express-graphql": "^0.12.0" does not work with the method expressGraphQL, use const { graphqlHTTP } = require('express-graphql'); or
const expressGraphQL = require('express-graphql').graphqlHTTP

Refer https://stackoverflow.com/questions/65517979/expressgraphql-is-not-a-function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions