From a38888753b92e87a6d2b06ed7e61f30a47b02c20 Mon Sep 17 00:00:00 2001 From: mekraldi <109835234+mekraldi@users.noreply.github.com> Date: Wed, 4 Oct 2023 19:09:06 -0400 Subject: [PATCH] fix: Added missing createClient import in example when creating GraphQLWsLink link. --- packages/docs/src/guide-composable/subscription.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docs/src/guide-composable/subscription.md b/packages/docs/src/guide-composable/subscription.md index b07cbf12..3d69790a 100644 --- a/packages/docs/src/guide-composable/subscription.md +++ b/packages/docs/src/guide-composable/subscription.md @@ -82,6 +82,7 @@ We need to either use the `GraphQLWsLink` or the `HttpLink` depending on the ope ```js import { HttpLink, split } from "@apollo/client/core" import { GraphQLWsLink } from "@apollo/client/link/subscriptions"; // <-- This one uses graphql-ws +import { createClient } from "graphql-ws"; import { getMainDefinition } from "@apollo/client/utilities" // Create an http link: