You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I am using GraphQL subscriptions for realtime data from server. I want to connect with GraphQL subscriptions after login only. How to do this? In 1.0 we can do this lazy option but in 2.0 there is no option. Please Help.
// using ApolloLink.split to select link for each operation.
const apolloLink = ApolloLink.split(
hasSubscriptionOperation,
webSocketLink,
httpLink
);`
The text was updated successfully, but these errors were encountered:
I am using GraphQL subscriptions for realtime data from server. I want to connect with GraphQL subscriptions after login only. How to do this? In 1.0 we can do this lazy option but in 2.0 there is no option. Please Help.
`const hasSubscriptionOperation = ({ query: { definitions } }) =>
definitions.some(
({ kind, operation }) => kind === 'OperationDefinition' && operation === 'subscription',
)
The text was updated successfully, but these errors were encountered: