-
Notifications
You must be signed in to change notification settings - Fork 14
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
Not working with Apollo persistedQueryLink? #398
Comments
Hi @justdvl, we never tried to use our link with |
I've ran into this issue as well. I think the issue is that the operations get persisted containing the |
Just some feedback. TLDR: you can still use this (great!) library with persisted operations, without requiring any changes to your code (or the library). Longer version: I fixed this by writing some code that alters the persisted operations to remove the |
TLDR:
The persisted query link requires using the
HttpLink
. (see link to their doc bellow).Is it possible to set up MultiAPILink using
HttpLink
? (instead ofcreateHttpLink
)Longer explanation:
Hello, in apollo-client.ts I had implemented
PersistendQueryLink
, based on https://www.apollographql.com/docs/react/api/link/persisted-queries/I have const
links = []
and then push thereerrorLink
,authorizationLink
, (retry link
), following by:I get error from BE:
Before using this library, I connected to 1 endpoint like so:
Thus it is clear my error comes from connecting to multiple endpoints using this library.
I think answer to my problem is in sentence: The persisted query link requires using the HttpLink. (see link to their doc above).
Thus my question is, is it possible to set up MultiAPILink using HttpLink? (instead of createHttpLink). If yes, how?
The text was updated successfully, but these errors were encountered: