Posts
Members
Info
SSR apollo link http not passing authentication cookies
I have a nextjs app running on localhost:3000 and a graphql server running at localhost:8000. I have a login mutation that is writing a cookie to the response. cors is set up on the graphql server with credentials: true and origin: 'http://localhost:3000'. On the nextjs end I am…
3
6
I wanted to edit the document but it says it is readonly. 😔
https://github.com/apollographql/apollo-link/blob/master/docs/source/links/http.md
0
6
Protocol problem using WebsocketLink
Hi! On the past few weeks i was trying to connect my React apllication using an Elixir Server, and while i was trying to connect on Firefox everything works fine, but on Chrome i get this error: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but…
0
2
·113d# Apollo Link
How to access response.headers with apollo-link-rest ?
Hi all, I wat to use apollo-link-rest to access a rest api, however, I can not per useQuery() access the response.headers. For example, a rest api with pagination, which put the first, prev, next, last information in the header. How can I access that? …
0
0
How does apollo-link-dedup work?
I have three child components that each define a query using useQuery. Each of the queries defined in these components have overlap in the fields that they're requesting, and they all have the exact same entrypoint into the schema (and variable). Despite this, it is resulting in…
0
1
2 same "on errors"
Hi. I'm using apollo-link-error 1.1.13 and I see that errors are emitting 2 times. I debugged sources a bit: …
0
0
·139d# Apollo Link
What happened to apollo-link-state?
Where did it go? Are there any alternatives if it's gone forever? What I'm trying to do is sort of merge a set of web workers orchestrated via GraphQL with the GraphQL endpoint exposed by the backend, and apollo-link-state seemed to fit this bill, or am I wrong?
0
1
·148d# Apollo Link
Apollo error link - setState inside onError method
Hi, I'm trying to display the error message I'm getting from the apollo API call to the user, so I try to save my current error in the state of my ApolloProvider inside the onError method. The problem is the onError method doesn't stop to rerun and then my page is rerendering…
0
0
·152d# Apollo Link
Retry Link appears to prevent errors from being returned to useQuery hook
I'm currently using useQuery to handle queries and errors in specific components and was relying on the error property to display a message to the user: The error comes back as undefined once I've got the following RetryLink configured: Does anyone know if I can still bubble the…
2
3
Does Apollo Server support batched queries using get request format?
Apollo Server supports batching by default for an example post request batching in Apollo Server looks like this. [{ query: "a", …
0
0