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

query returns null instead of value #2311

Open
msadovyi opened this issue Jun 14, 2021 · 1 comment
Open

query returns null instead of value #2311

msadovyi opened this issue Jun 14, 2021 · 1 comment

Comments

@msadovyi
Copy link

Describe the bug

Hi! I'm trying to run graphql-mesh with 1 handler that uses graphql-ws as transport. It seems like queries does not works correctly with graphql-ws.

To Reproduce
Clone https://github.com/msadovyi/mesh-graphql-ws-issue

  1. Run yarn && yarn start. It runs source API at port 3000 and grapql-mesh at port 4000.
  2. Open http://localhost:3000 and make sure query { hello } and subscription subscription { greetings } return values.
  3. Open http://localhost:4000 and execute same queries: { hello }, subscription { greetings }.

Expected behavior
Both of queries works correctly and returns values as source API does.

Environment:

  • Dependencies:
"@graphql-mesh/cli": "^0.30.2",
"@graphql-mesh/graphql": "^0.17.10",
"apollo-server-express": "^2.25.1",
"express": "^4.17.1",
"graphql": "^15.5.0",
"graphql-ws": "^5.1.2",
 "ws": "^7.4.6"
  • NodeJS: v14.16.1
@Davenporten
Copy link

Can you give a little more context? When you run the subscription does an error come back? Or is it just hanging?

@theguild-bot theguild-bot mentioned this issue Aug 11, 2022
@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
This was referenced Apr 30, 2024
This was referenced May 7, 2024
klippx pushed a commit to klippx/graphql-mesh that referenced this issue Oct 9, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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

2 participants