Skip to content

Commit 2879be2

Browse files
author
Divyendu Singh
authored
Merge pull request #7 from samhv/patch-1
fix readme
2 parents abbbe2e + 9d433d5 commit 2879be2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ The main use-case for this library is the usage from a [`graphql-yoga`](https://
1414
## Usage
1515

1616
```ts
17-
import { BatchedHTTPLink } from 'http-link-dataloader'
17+
import { HTTPLinkDataloader } from 'http-link-dataloader'
1818

19-
const link = new BatchedHTTPLink()
19+
const link = new HTTPLinkDataloader()
2020

2121
const token = 'Auth Token'
2222

23-
const httpLink = new BatchedHttpLink({
23+
const httpLink = new HTTPLinkDataloader({
2424
uri: `api endpoint`,
2525
headers: { Authorization: `Bearer ${token}` },
2626
})

0 commit comments

Comments
 (0)