We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2421788 commit 8004568Copy full SHA for 8004568
README.md
@@ -16,6 +16,10 @@ generates:
16
- plugin-typescript-swr
17
config:
18
rawRequest: false
19
+ # exclude queries that are matched by micromatch (case-sensitive)
20
+ exclude:
21
+ - foo*
22
+ - bar
23
```
24
25
```typescript
@@ -24,7 +28,9 @@ import { GraphQLClient } from 'graphql-request'
28
import { getSdkWithHooks } from './graphql'
29
26
30
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
+ })
34
)
35
36
export default sdk
0 commit comments