Skip to content

Commit 8004568

Browse files
committed
Update document
1 parent 2421788 commit 8004568

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ generates:
1616
- plugin-typescript-swr
1717
config:
1818
rawRequest: false
19+
# exclude queries that are matched by micromatch (case-sensitive)
20+
exclude:
21+
- foo*
22+
- bar
1923
```
2024
2125
```typescript
@@ -24,7 +28,9 @@ import { GraphQLClient } from 'graphql-request'
2428
import { getSdkWithHooks } from './graphql'
2529

2630
const sdk = getSdkWithHooks(
27-
new GraphQLClient(`${process.env.API_URL}/graphql`, { cache: typeof window === 'object' ? 'default' : 'no-cache' })
31+
new GraphQLClient(`${process.env.API_URL}/graphql`, {
32+
cache: typeof window === 'object' ? 'default' : 'no-cache',
33+
})
2834
)
2935

3036
export default sdk

0 commit comments

Comments
 (0)