Skip to content

Commit

Permalink
docs: fix bad redis import (#1554)
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 8, 2022
1 parent 809a5b2 commit c3b0a81
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 c3b0a81

Please sign in to comment.