From 9d8cc79ae93fce4360181c16a902ebc919558ee9 Mon Sep 17 00:00:00 2001 From: mekraldi <109835234+mekraldi@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:38:37 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20Added=20missing=20createClient=20import?= =?UTF-8?q?=20in=20example=20when=20creating=20Graph=E2=80=A6=20(#1513)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 39afa3b9..917c0734 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: