Skip to content

Commit

Permalink
docs: fix example by setting global fetch variable (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottburch committed May 28, 2020
1 parent 5cb1aa1 commit 2246c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cookie-support-for-node.ts
@@ -1,4 +1,4 @@
require('fetch-cookie/node-fetch')(require('node-fetch'))
(global as any).fetch = require('fetch-cookie/node-fetch')(require('node-fetch'))

import { GraphQLClient } from '../src'

Expand Down

0 comments on commit 2246c4d

Please sign in to comment.