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
@@ -38,23 +39,23 @@ anywhere within their current data!
38
39
39
40
Similarly, after you create an object, you tell it the `typename` of the created
40
41
object and it refetches all active queries that contain an object of that type
41
-
in their selections. This is a bit less efficient than handling deletes, but
42
+
in their selections. This is a bit less efficient than handling deletes, but
42
43
way easier than anything else at the time of writing.
43
44
44
45
Since only active queries can be refetched, data in the cache for inactive
45
-
queries will remain out-of-date. For that reason, I would recommend using the
46
+
queries will remain out-of-date. For that reason, I would recommend using the
46
47
`cache-and-network` policy on all queries you're not planning to `update` after
47
48
all pertinent mutations.
48
49
49
50
## Current limitations
50
51
51
-
Interfaces and union types are not supported yet. This means if they are
52
+
Interfaces and union types are not supported yet. This means if they are
52
53
anywhere in your results, this library may fail to refetch when it should.
53
54
54
55
Also, lists of lists are not supported, if for whatever reason you are using
55
56
lists of lists in your schema (I haven't even checked if this is possible).
56
57
57
-
Recursive queries are not currently working (https://github.com/jcoreio/apollo-magic-refetch/issues/2); currently it stops at objects of the target type, rather than looking at their descendants.
58
+
Recursive queries are not currently working (https://github.com/jcoreio/apollo-magic-refetch/issues/2); currently it stops at objects of the target type, rather than looking at their descendants.
58
59
59
60
## ES environment requirements
60
61
@@ -82,7 +83,7 @@ getSchemaTypes(client)
82
83
## Handling Deletions
83
84
84
85
In this example, the `__typename` of the object being deleted is `Device` and it
85
-
uses the standard `id` field. If instead the field were called `tag`, for
86
+
uses the standard `id` field. If instead the field were called `tag`, for
86
87
instance, you would pass `'tag'` after `deviceId` in the call to `refetch`.
87
88
88
89
You may pass an array or `Set` of ids in place of a single `deviceId`.
0 commit comments