apollo
apollo copied to clipboard
ApolloClient.setLink is not a function
Describe the bug
When I try to use setLink function, I get an error: "ApolloClient.setLink is not a function".
apolloClient = new ApolloClient({ cache, link })
apolloClient.setLink(link2)
I would expect this function to be a part of ApolloClient, so I can "refresh" my link (to add or remove WS link for example).
Versions vue: 2.6.12 vue-apollo: 3.0.5 apollo-client: 2.6.10