Replies: 1 comment
-
This feels like an integration issue, not specific to graphql-sse. Are you sure your codegen gateway supports graphql-sse? What errors do you get downstream? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Screenshot
Visualising is always helpful.
[Codegen image]
This is a codegen file which is connecting to the endpoint where the server with the sse handler is at on endpoint /graphql/stream.
And there might not be a schema available!
Even routing to this page through the browser its telling me it's not what i think to expect here, I know it works because other routes operate fine:
[Chrome /graphql/stream image]
Here is the server running, it is connecting to "/" where i just test to see the h2 in my Network inspector. According to the documentation.
Im also unsure about the situation on the client side. I've copied the code exactly and removed the headers part for my own purposes!
[Client Side SSELink]
[Final Combination for Apollo provider]
https://www.apollographql.com/docs/react/api/link/introduction/#directional-composition
[Link to Apollo Documentation on linking]
From reading the Apollo link documentation, A directional integration is appropriate,
[SSE integration using a Direction Link] (concept not working)
Expected Behaviour
I expected it to do this -
Actual Behaviour
Im unsure what the server is suppose to return from the handler, but what i expect is probably a schema but currently just unable to connect from the client
Debug Information
Help us debug the bug?
Further Information
This is a React Native project, i know mobile accepts the h2 unsure if its relevant to the sse package!
In the example with the Apollo Client I think it maybe incorrect for h2 because the link isnt using http2!
I understand im not asking a specific question but my real issue it i can't seem to make it work for me!
If we can make it work i would be happy to provide that update.
Beta Was this translation helpful? Give feedback.
All reactions