22
22
###### ` variables `
23
23
24
24
` { [key: string]: any } `
25
+
25
26
</td >
26
27
27
28
<td >
@@ -39,6 +40,7 @@ Each key in the object corresponds to a variable name, and that key's value corr
39
40
###### ` errorPolicy `
40
41
41
42
` ErrorPolicy `
43
+
42
44
</td >
43
45
44
46
<td >
@@ -48,6 +50,7 @@ Specifies how the query handles a response that returns both GraphQL errors and
48
50
For details, see [ GraphQL error policies] ( /react/data/error-handling/#graphql-error-policies ) .
49
51
50
52
The default value is ` none ` , which causes the ` useReadQuery ` hook to throw the error.
53
+
51
54
</td >
52
55
</tr >
53
56
@@ -65,6 +68,7 @@ The default value is `none`, which causes the `useReadQuery` hook to throw the e
65
68
###### ` context `
66
69
67
70
` Record<string, any> `
71
+
68
72
</td >
69
73
70
74
<td >
@@ -80,6 +84,7 @@ If you're using [Apollo Link](/react/api/link/introduction/), this object is the
80
84
###### ` canonizeResults `
81
85
82
86
` Boolean `
87
+
83
88
</td >
84
89
85
90
<td >
@@ -97,6 +102,7 @@ The default value is `false`.
97
102
###### ` client `
98
103
99
104
` ApolloClient `
105
+
100
106
</td >
101
107
102
108
<td >
@@ -122,6 +128,7 @@ By default, the instance that's passed down via context is used, but you can pro
122
128
###### ` fetchPolicy `
123
129
124
130
` SuspenseQueryHookFetchPolicy `
131
+
125
132
</td >
126
133
127
134
<td >
@@ -138,6 +145,42 @@ The default value is `cache-first`.
138
145
</td >
139
146
</tr >
140
147
148
+ <tr >
149
+ <td >
150
+
151
+ ###### ` returnPartialData `
152
+
153
+ ` boolean `
154
+
155
+ </td >
156
+
157
+ <td >
158
+
159
+ If ` true ` , the query can return _ partial_ results from the cache if the cache doesn't contain results for _ all_ queried fields.
160
+
161
+ The default value is ` false ` .
162
+
163
+ </td >
164
+ </tr >
165
+
166
+ <tr >
167
+ <td >
168
+
169
+ ###### ` refetchWritePolicy `
170
+
171
+ ` "merge" | "overwrite" `
172
+
173
+ </td >
174
+
175
+ <td >
176
+
177
+ Watched queries must opt into overwriting existing data on refetch, by passing ` refetchWritePolicy: "overwrite" ` in their ` WatchQueryOptions ` .
178
+
179
+ The default value is ` "overwrite" ` .
180
+
181
+ </td >
182
+ </tr >
183
+
141
184
</tbody >
142
185
143
186
</table >
0 commit comments