@@ -67,12 +67,14 @@ export declare namespace Cache {
67
67
result : Unmasked < TData > ;
68
68
69
69
/**
70
- * Whether to notify query watchers (default: true).
70
+ * Whether to notify query watchers.
71
+ * @defaultValue true
71
72
*/
72
73
broadcast ?: boolean ;
73
74
/**
74
75
* When true, ignore existing field data rather than merging it with
75
- * incoming data (default: false).
76
+ * incoming data.
77
+ * @defaultValue false
76
78
*/
77
79
overwrite ?: boolean ;
78
80
}
@@ -160,7 +162,7 @@ export declare namespace Cache {
160
162
> {
161
163
/**
162
164
* The GraphQL query shape to be used constructed using the `gql` template
163
- * string tag from `graphql-tag` . The query will be used to determine the
165
+ * string. The query will be used to determine the
164
166
* shape of the data to be read.
165
167
*/
166
168
query : DocumentNode | TypedDocumentNode < TData , TVariables > ;
@@ -172,19 +174,20 @@ export declare namespace Cache {
172
174
173
175
/**
174
176
* The root id to be used. Defaults to "ROOT_QUERY", which is the ID of the
175
- * root query object. This property makes writeQuery capable of writing data
176
- * to any object in the cache.
177
+ * root query object. This property makes readQuery capable of reading data
178
+ * from any object in the cache.
177
179
*/
178
180
id ?: string ;
179
181
/**
180
182
* Whether to return incomplete data rather than null.
181
- * Defaults to false.
183
+ * @defaultValue false
182
184
*/
183
185
returnPartialData ?: boolean ;
184
186
/**
185
187
* Whether to read from optimistic or non-optimistic cache data. If
186
188
* this named option is provided, the optimistic parameter of the
187
- * readQuery method can be omitted. Defaults to false.
189
+ * readQuery method can be omitted.
190
+ * @defaultValue false
188
191
*/
189
192
optimistic ?: boolean ;
190
193
}
@@ -195,7 +198,7 @@ export declare namespace Cache {
195
198
> {
196
199
/**
197
200
* The root id to be used. This id should take the same form as the
198
- * value returned by your `dataIdFromObject ` function. If a value with your
201
+ * value returned by the `cache.identify ` function. If a value with your
199
202
* id does not exist in the store, `null` will be returned.
200
203
*/
201
204
id ?: string ;
@@ -204,7 +207,8 @@ export declare namespace Cache {
204
207
* A GraphQL document created using the `gql` template string tag from
205
208
* `graphql-tag` with one or more fragments which will be used to determine
206
209
* the shape of data to read. If you provide more than one fragment in this
207
- * document then you must also specify `fragmentName` to select a single.
210
+ * document then you must also specify `fragmentName` to specify which
211
+ * fragment is the root fragment.
208
212
*/
209
213
fragment : DocumentNode | TypedDocumentNode < TData , TVariables > ;
210
214
@@ -222,13 +226,14 @@ export declare namespace Cache {
222
226
223
227
/**
224
228
* Whether to return incomplete data rather than null.
225
- * Defaults to false.
229
+ * @defaultValue false
226
230
*/
227
231
returnPartialData ?: boolean ;
228
232
/**
229
233
* Whether to read from optimistic or non-optimistic cache data. If
230
234
* this named option is provided, the optimistic parameter of the
231
- * readQuery method can be omitted. Defaults to false.
235
+ * readFragment method can be omitted.
236
+ * @defaultValue false
232
237
*/
233
238
optimistic ?: boolean ;
234
239
}
@@ -257,16 +262,18 @@ export declare namespace Cache {
257
262
id ?: string ;
258
263
259
264
/**
260
- * The data you will be writing to the store.
265
+ * The data to write to the store.
261
266
*/
262
267
data : Unmasked < TData > ;
263
268
/**
264
- * Whether to notify query watchers (default: true).
269
+ * Whether to notify query watchers.
270
+ * @defaultValue true
265
271
*/
266
272
broadcast ?: boolean ;
267
273
/**
268
274
* When true, ignore existing field data rather than merging it with
269
- * incoming data (default: false).
275
+ * incoming data.
276
+ * @defaultValue false
270
277
*/
271
278
overwrite ?: boolean ;
272
279
}
@@ -277,16 +284,17 @@ export declare namespace Cache {
277
284
> {
278
285
/**
279
286
* The root id to be used. This id should take the same form as the
280
- * value returned by your `dataIdFromObject ` function. If a value with your
287
+ * value returned by the `cache.identify ` function. If a value with your
281
288
* id does not exist in the store, `null` will be returned.
282
289
*/
283
290
id ?: string ;
284
291
285
292
/**
286
- * A GraphQL document created using the `gql` template string tag from
287
- * `graphql-tag` with one or more fragments which will be used to determine
293
+ * A GraphQL document created using the `gql` template string
294
+ * with one or more fragments which will be used to determine
288
295
* the shape of data to read. If you provide more than one fragment in this
289
- * document then you must also specify `fragmentName` to select a single.
296
+ * document then you must also specify `fragmentName` to specify specify which
297
+ * fragment is the root fragment.
290
298
*/
291
299
fragment : DocumentNode | TypedDocumentNode < TData , TVariables > ;
292
300
@@ -302,16 +310,18 @@ export declare namespace Cache {
302
310
*/
303
311
variables ?: TVariables ;
304
312
/**
305
- * The data you will be writing to the store.
313
+ * The data to write to the store.
306
314
*/
307
315
data : Unmasked < TData > ;
308
316
/**
309
- * Whether to notify query watchers (default: true).
317
+ * Whether to notify query watchers.
318
+ * @defaultValue true
310
319
*/
311
320
broadcast ?: boolean ;
312
321
/**
313
322
* When true, ignore existing field data rather than merging it with
314
- * incoming data (default: false).
323
+ * incoming data.
324
+ * @defaultValue false
315
325
*/
316
326
overwrite ?: boolean ;
317
327
}
0 commit comments