docs: Added missing createClient import in example when creating Graph… (#1513)

This commit is contained in:
mekraldi 2023-11-29 08:38:37 -05:00 committed by GitHub
parent d953688119
commit 9d8cc79ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: