mirror of
https://github.com/vuejs/apollo.git
synced 2026-02-01 14:37:18 +00:00
docs: Added missing createClient import in example when creating Graph… (#1513)
This commit is contained in:
parent
d953688119
commit
9d8cc79ae9
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user