There was an error while loading. Please reload this page.
2 parents abbbe2e + 9d433d5 commit 2879be2Copy full SHA for 2879be2
README.md
@@ -14,13 +14,13 @@ The main use-case for this library is the usage from a [`graphql-yoga`](https://
14
## Usage
15
16
```ts
17
-import { BatchedHTTPLink } from 'http-link-dataloader'
+import { HTTPLinkDataloader } from 'http-link-dataloader'
18
19
-const link = new BatchedHTTPLink()
+const link = new HTTPLinkDataloader()
20
21
const token = 'Auth Token'
22
23
-const httpLink = new BatchedHttpLink({
+const httpLink = new HTTPLinkDataloader({
24
uri: `api endpoint`,
25
headers: { Authorization: `Bearer ${token}` },
26
})
0 commit comments