You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# graphql-codegen-plugin-typescript-swr<!-- omit in toc -->
2
2
3
3
A [GraphQL code generator](https://graphql-code-generator.com/) plug-in that automatically generates utility functions for [SWR](https://swr.vercel.app/).
4
4
5
-
## Example
5
+
## Table of Contents <!-- omit in toc -->
6
+
7
+
-[API Reference](#api-reference)
8
+
-[`excludeQueries`](#excludequeries)
9
+
-[`useSWRInfinite`](#useswrinfinite)
10
+
-[`autogenSWRKey`](#autogenswrkey)
11
+
-[Config Example](#config-example)
12
+
-[Usage Examples](#usage-examples)
13
+
-[Pagination](#pagination)
14
+
-[Authorization](#authorization)
15
+
-[Next.js](#nextjs)
16
+
17
+
## API Reference
18
+
19
+
### `excludeQueries`
20
+
21
+
type: `string | string[]` default: `""`
22
+
23
+
Exclude queries that are matched by micromatch (case-sensitive).
24
+
25
+
### `useSWRInfinite`
26
+
27
+
type: `string | string[]` default: `""`
28
+
29
+
Add `useSWRInfinite()` wrapper for the queries that are matched by micromatch (case-sensitive).
30
+
31
+
### `autogenSWRKey`
32
+
33
+
type: `boolean` default: `false`
34
+
35
+
Generate key to use `useSWR()` automatically.
36
+
But, the cache may not work unless you separate the variables object into an external file and use it, or use a primitive type for the value of each field.
0 commit comments