Skip to content

Starting a server gives Error - TypeError: expressGraphQL is not a function #3

@michaelmiscanuk

Description

@michaelmiscanuk

Hi, found a solution for this error when starting a server, so sharing:

I just changed a line when requiring express-graphql to:

const expressGraphQL = require('express-graphql').graphqlHTTP

Now it starts ok.

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