Skip to content

Commit

Permalink
docs: Fix bad redis import
Browse files Browse the repository at this point in the history
There is an error with import. 
```
'Redis' cannot be used as a value because it was exported using 'export type'.ts(1362)
```
Take a look here https://github.com/luin/ioredis
  • Loading branch information
ChromeGG committed Aug 6, 2022
1 parent 60aff5f commit 49b1ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/features/subscriptions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ Yoga comes with an `EventTarget` implementation for [Redis Pub/Sub](https://redi
<PackageInstall packages={['@graphql-yoga/redis-event-target ioredis']} />

```ts
import { Redis } from 'ioredis'
import Redis from 'ioredis'
import { createPubSub } from '@graphql-yoga/common'
import { createRedisEventTarget } from '@graphql-yoga/redis-event-target'

Expand Down

0 comments on commit 49b1ad6

Please sign in to comment.