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

Cannot work with graphql, express-graphql or graphql-http #275

Open
destroyer22719 opened this issue Apr 25, 2023 · 0 comments
Open

Cannot work with graphql, express-graphql or graphql-http #275

destroyer22719 opened this issue Apr 25, 2023 · 0 comments

Comments

@destroyer22719
Copy link

I am trying to migrate my application from REST to GraphQL but I encountered a problem. Whenever I run a query in which it works perfectly fine like normal it returns the results I want. But when I use serverless-offline or deploy it on AWS Lambda it doesn't work. I get this error:

{
    "errors": [
        {
            "message": "Must provide query string."
        }
    ]
}

I currently use graphql-http in my nodejs and express application and after trying out the deprecated express-graph package it has the exact same problem. You can clone the below GitHub repository and use serverless offline to run it and see for yourself.

you can run the below

query {
    hello
}

in which the result should be

{
    "data": {
        "hello": "Hello world!"
    }
}

I noticed there is an issue that is still open but no update from the developer yet regarding this issue in which he said he'll look into it later and it's been 2 years:
#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant