Skip to content

Commit

Permalink
chore(docs): Update README.md (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimabukuromeg authored Oct 23, 2023
1 parent a0d50bd commit 839b61e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ await request({
A class is available for constructing your own instances:

```js
import { GraphQLClient } from 'graphql-request'
import { GraphQLClient, gql } from 'graphql-request'

const document = gql`
{
Expand All @@ -81,8 +81,9 @@ const document = gql`
}
}
`
const endpoint = 'https://api.spacex.land/graphql/';
const client = new GraphQLClient(endpoint)
await request('https://api.spacex.land/graphql/', document)
await client.request(document)
```

## Examples
Expand Down

0 comments on commit 839b61e

Please sign in to comment.