@apollo/client 4.3.0-alpha.7 → 4.3.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/__cjs/cache/core/cache.cjs +25 -1
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +19 -1
- package/__cjs/cache/inmemory/entityStore.cjs +3 -3
- package/__cjs/cache/inmemory/inMemoryCache.cjs +10 -0
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +5 -1
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/policies.cjs +5 -5
- package/__cjs/cache/inmemory/readFromStore.cjs +3 -3
- package/__cjs/cache/inmemory/writeToStore.cjs +4 -4
- package/__cjs/core/ApolloClient.cjs +14 -14
- package/__cjs/core/ObservableQuery.cjs +8 -8
- package/__cjs/core/QueryInfo.cjs +1 -1
- package/__cjs/core/QueryManager.cjs +23 -13
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/RefetchEventManager.cjs +3 -3
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs +1 -1
- package/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/__cjs/invariantErrorCodes.cjs +122 -116
- package/__cjs/link/core/ApolloLink.cjs +3 -3
- package/__cjs/link/http/checkFetcher.cjs +1 -1
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +2 -2
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/__cjs/link/persisted-queries/index.cjs +2 -2
- package/__cjs/link/ws/index.cjs +1 -1
- package/__cjs/local-state/LocalState.cjs +11 -11
- package/__cjs/masking/maskDefinition.cjs +2 -2
- package/__cjs/masking/maskFragment.cjs +2 -2
- package/__cjs/masking/maskOperation.cjs +1 -1
- package/__cjs/masking/utils.cjs +3 -3
- package/__cjs/react/context/ApolloContext.cjs +1 -1
- package/__cjs/react/context/ApolloProvider.cjs +1 -1
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
- package/__cjs/react/hooks/useApolloClient.cjs +1 -1
- package/__cjs/react/hooks/useLazyQuery.cjs +2 -2
- package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
- package/__cjs/react/hooks/useSubscription.cjs +1 -1
- package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
- package/__cjs/react/internal/cache/QueryReference.cjs +1 -1
- package/__cjs/react/ssr/prerenderStatic.cjs +2 -2
- package/__cjs/testing/core/mocking/mockLink.cjs +4 -4
- package/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
- package/__cjs/utilities/internal/capitalize.cjs +12 -0
- package/__cjs/utilities/internal/capitalize.cjs.map +1 -0
- package/__cjs/utilities/internal/capitalize.d.cts +7 -0
- package/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs +69 -0
- package/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs.map +1 -0
- package/__cjs/utilities/internal/coerceScalarFieldsToParsed.d.cts +9 -0
- package/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
- package/__cjs/utilities/internal/getFragmentFromSelection.cjs +1 -1
- package/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -1
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
- package/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
- package/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
- package/__cjs/utilities/internal/index.cjs +6 -2
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +2 -0
- package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
- package/__cjs/utilities/internal/shouldInclude.cjs +4 -4
- package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
- package/__cjs/version.cjs +1 -1
- package/cache/core/cache.d.ts +19 -1
- package/cache/core/cache.js +26 -2
- package/cache/core/cache.js.map +1 -1
- package/cache/inmemory/entityStore.js +3 -3
- package/cache/inmemory/inMemoryCache.d.ts +5 -1
- package/cache/inmemory/inMemoryCache.js +10 -0
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.js +5 -5
- package/cache/inmemory/readFromStore.js +3 -3
- package/cache/inmemory/writeToStore.js +4 -4
- package/core/ApolloClient.js +14 -14
- package/core/ObservableQuery.js +8 -8
- package/core/QueryInfo.js +1 -1
- package/core/QueryManager.js +24 -14
- package/core/QueryManager.js.map +1 -1
- package/core/RefetchEventManager.js +3 -3
- package/incremental/handlers/graphql17Alpha9.js +1 -1
- package/incremental/handlers/notImplemented.js +1 -1
- package/invariantErrorCodes.js +122 -116
- package/link/core/ApolloLink.js +3 -3
- package/link/http/checkFetcher.js +1 -1
- package/link/http/parseAndCheckHttpResponse.js +2 -2
- package/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/link/persisted-queries/index.js +2 -2
- package/link/ws/index.js +1 -1
- package/local-state/LocalState.js +11 -11
- package/masking/maskDefinition.js +2 -2
- package/masking/maskFragment.js +2 -2
- package/masking/maskOperation.js +1 -1
- package/masking/utils.js +3 -3
- package/package.json +1 -1
- package/react/context/ApolloContext.js +1 -1
- package/react/context/ApolloProvider.js +1 -1
- package/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
- package/react/hooks/useApolloClient.js +1 -1
- package/react/hooks/useLazyQuery.js +2 -2
- package/react/hooks/useLoadableQuery.js +2 -2
- package/react/hooks/useSubscription.js +1 -1
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
- package/react/hooks-compiled/useApolloClient.js +1 -1
- package/react/hooks-compiled/useLazyQuery.js +2 -2
- package/react/hooks-compiled/useLoadableQuery.js +2 -2
- package/react/hooks-compiled/useSubscription.js +1 -1
- package/react/hooks-compiled/useSyncExternalStore.js +1 -1
- package/react/internal/cache/QueryReference.js +1 -1
- package/react/ssr/prerenderStatic.js +2 -2
- package/testing/core/mocking/mockLink.js +4 -4
- package/utilities/graphql/DocumentTransform.js +1 -1
- package/utilities/internal/capitalize.d.ts +7 -0
- package/utilities/internal/capitalize.js +9 -0
- package/utilities/internal/capitalize.js.map +1 -0
- package/utilities/internal/coerceScalarFieldsToParsed.d.ts +9 -0
- package/utilities/internal/coerceScalarFieldsToParsed.js +66 -0
- package/utilities/internal/coerceScalarFieldsToParsed.js.map +1 -0
- package/utilities/internal/getFragmentDefinition.js +3 -3
- package/utilities/internal/getFragmentFromSelection.js +1 -1
- package/utilities/internal/getFragmentFromSelection.js.map +1 -1
- package/utilities/internal/getFragmentQueryDocument.js +2 -2
- package/utilities/internal/getMainDefinition.js +1 -1
- package/utilities/internal/getQueryDefinition.js +1 -1
- package/utilities/internal/index.d.ts +2 -0
- package/utilities/internal/index.js +2 -0
- package/utilities/internal/index.js.map +1 -1
- package/utilities/internal/removeDirectivesFromDocument.js +1 -1
- package/utilities/internal/shouldInclude.js +4 -4
- package/utilities/internal/valueToObjectRepresentation.js +1 -1
- package/version.js +1 -1
|
@@ -39,6 +39,12 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
39
39
|
},
|
|
40
40
|
|
|
41
41
|
6: {
|
|
42
|
+
file: "@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs",
|
|
43
|
+
condition: "operationType",
|
|
44
|
+
message: "Document node must be a query, mutation, or subscription"
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
7: {
|
|
42
48
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
43
49
|
condition: "doc.kind === \"Document\"",
|
|
44
50
|
|
|
@@ -46,73 +52,73 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
46
52
|
string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
47
53
|
},
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
8: {
|
|
50
56
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
51
57
|
condition: "doc.definitions.length <= 1",
|
|
52
58
|
message: "Fragment must have exactly one definition."
|
|
53
59
|
},
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
9: {
|
|
56
62
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
57
63
|
condition: "fragmentDef.kind === \"FragmentDefinition\"",
|
|
58
64
|
message: "Must be a fragment definition."
|
|
59
65
|
},
|
|
60
66
|
|
|
61
|
-
|
|
67
|
+
10: {
|
|
62
68
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs",
|
|
63
69
|
condition: "fragment",
|
|
64
70
|
message: `No fragment named %s`
|
|
65
71
|
},
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
11: {
|
|
68
74
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs",
|
|
69
75
|
|
|
70
76
|
message: `Found a %s operation%s. ` +
|
|
71
77
|
"No operations are allowed when using a fragment as a query. Only fragments are allowed."
|
|
72
78
|
},
|
|
73
79
|
|
|
74
|
-
|
|
80
|
+
12: {
|
|
75
81
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs",
|
|
76
82
|
condition: "fragments.length === 1",
|
|
77
83
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
78
84
|
},
|
|
79
85
|
|
|
80
|
-
|
|
86
|
+
13: {
|
|
81
87
|
file: "@apollo/client/__cjs/utilities/internal/getMainDefinition.cjs",
|
|
82
88
|
message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
|
|
83
89
|
},
|
|
84
90
|
|
|
85
|
-
|
|
91
|
+
14: {
|
|
86
92
|
file: "@apollo/client/__cjs/utilities/internal/getQueryDefinition.cjs",
|
|
87
93
|
condition: "queryDef && queryDef.operation === \"query\"",
|
|
88
94
|
message: "Must contain a query definition."
|
|
89
95
|
},
|
|
90
96
|
|
|
91
|
-
|
|
97
|
+
16: {
|
|
92
98
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
93
99
|
condition: "evaledValue !== void 0",
|
|
94
100
|
message: `Invalid variable referenced in @%s directive.`
|
|
95
101
|
},
|
|
96
102
|
|
|
97
|
-
|
|
103
|
+
17: {
|
|
98
104
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
99
105
|
condition: "directiveArguments && directiveArguments.length === 1",
|
|
100
106
|
message: `Incorrect number of arguments for the @%s directive.`
|
|
101
107
|
},
|
|
102
108
|
|
|
103
|
-
|
|
109
|
+
18: {
|
|
104
110
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
105
111
|
condition: "ifArgument.name && ifArgument.name.value === \"if\"",
|
|
106
112
|
message: `Invalid argument for the @%s directive.`
|
|
107
113
|
},
|
|
108
114
|
|
|
109
|
-
|
|
115
|
+
19: {
|
|
110
116
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
111
117
|
condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
|
|
112
118
|
message: `Argument for the @%s directive must be a variable or a boolean value.`
|
|
113
119
|
},
|
|
114
120
|
|
|
115
|
-
|
|
121
|
+
20: {
|
|
116
122
|
file: "@apollo/client/__cjs/utilities/internal/valueToObjectRepresentation.cjs",
|
|
117
123
|
|
|
118
124
|
message: `The inline argument "%s" of kind "%s"` +
|
|
@@ -120,37 +126,37 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
120
126
|
"overcome this limitation."
|
|
121
127
|
},
|
|
122
128
|
|
|
123
|
-
|
|
129
|
+
21: {
|
|
124
130
|
file: "@apollo/client/__cjs/utilities/graphql/DocumentTransform.cjs",
|
|
125
131
|
condition: "Array.isArray(cacheKeys)",
|
|
126
132
|
message: "`getCacheKey` must return an array or undefined"
|
|
127
133
|
},
|
|
128
134
|
|
|
129
|
-
|
|
135
|
+
22: {
|
|
130
136
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
131
137
|
condition: "max > min",
|
|
132
138
|
message: "realisticDelay: `min` must be less than `max`"
|
|
133
139
|
},
|
|
134
140
|
|
|
135
|
-
|
|
141
|
+
23: {
|
|
136
142
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
137
143
|
condition: "queryWithoutClientOnlyDirectives",
|
|
138
144
|
message: "query is required"
|
|
139
145
|
},
|
|
140
146
|
|
|
141
|
-
|
|
147
|
+
24: {
|
|
142
148
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
143
149
|
condition: "serverQuery",
|
|
144
150
|
message: "Cannot mock a client-only query. Mocked responses should contain at least one non-client field."
|
|
145
151
|
},
|
|
146
152
|
|
|
147
|
-
|
|
153
|
+
25: {
|
|
148
154
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
149
155
|
condition: "(mock.maxUsageCount ?? 1) > 0",
|
|
150
156
|
message: "Mocked response `maxUsageCount` must be greater than 0. Given %s"
|
|
151
157
|
},
|
|
152
158
|
|
|
153
|
-
|
|
159
|
+
26: {
|
|
154
160
|
file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
|
|
155
161
|
condition: "renderCount <= maxRerenders",
|
|
156
162
|
|
|
@@ -160,19 +166,19 @@ and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
|
|
|
160
166
|
you have an infinite render loop in your application.`
|
|
161
167
|
},
|
|
162
168
|
|
|
163
|
-
|
|
169
|
+
27: {
|
|
164
170
|
file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
|
|
165
171
|
condition: "!signal?.aborted",
|
|
166
172
|
message: "The operation was aborted before it could be attempted."
|
|
167
173
|
},
|
|
168
174
|
|
|
169
|
-
|
|
175
|
+
28: {
|
|
170
176
|
file: "@apollo/client/__cjs/react/internal/cache/QueryReference.cjs",
|
|
171
177
|
condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
|
|
172
178
|
message: "Expected a QueryRef object, but got something else instead."
|
|
173
179
|
},
|
|
174
180
|
|
|
175
|
-
|
|
181
|
+
29: {
|
|
176
182
|
file: "@apollo/client/__cjs/react/hooks/useApolloClient.cjs",
|
|
177
183
|
condition: "!!client",
|
|
178
184
|
|
|
@@ -181,43 +187,43 @@ you have an infinite render loop in your application.`
|
|
|
181
187
|
"instance in via options."
|
|
182
188
|
},
|
|
183
189
|
|
|
184
|
-
|
|
190
|
+
30: {
|
|
185
191
|
file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
|
|
186
192
|
condition: "resultRef.current",
|
|
187
193
|
message: "useLazyQuery: '%s' cannot be called before executing the query."
|
|
188
194
|
},
|
|
189
195
|
|
|
190
|
-
|
|
196
|
+
31: {
|
|
191
197
|
file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
|
|
192
198
|
condition: "!calledDuringRender()",
|
|
193
199
|
message: "useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."
|
|
194
200
|
},
|
|
195
201
|
|
|
196
|
-
|
|
202
|
+
32: {
|
|
197
203
|
file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
|
|
198
204
|
condition: "!calledDuringRender()",
|
|
199
205
|
message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
|
|
200
206
|
},
|
|
201
207
|
|
|
202
|
-
|
|
208
|
+
33: {
|
|
203
209
|
file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
|
|
204
210
|
condition: "internalQueryRef",
|
|
205
211
|
message: "The query has not been loaded. Please load the query."
|
|
206
212
|
},
|
|
207
213
|
|
|
208
|
-
|
|
214
|
+
34: {
|
|
209
215
|
file: "@apollo/client/__cjs/react/hooks/useSubscription.cjs",
|
|
210
216
|
condition: "!optionsRef.current.skip",
|
|
211
217
|
message: "A subscription that is skipped cannot be restarted."
|
|
212
218
|
},
|
|
213
219
|
|
|
214
|
-
|
|
220
|
+
36: {
|
|
215
221
|
file: "@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs",
|
|
216
222
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
217
223
|
message: `The fetch policy \`%s\` is not supported with suspense.`
|
|
218
224
|
},
|
|
219
225
|
|
|
220
|
-
|
|
226
|
+
38: {
|
|
221
227
|
file: "@apollo/client/__cjs/react/context/ApolloContext.cjs",
|
|
222
228
|
condition: "\"createContext\" in React",
|
|
223
229
|
|
|
@@ -228,7 +234,7 @@ you have an infinite render loop in your application.`
|
|
|
228
234
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
229
235
|
},
|
|
230
236
|
|
|
231
|
-
|
|
237
|
+
39: {
|
|
232
238
|
file: "@apollo/client/__cjs/react/context/ApolloProvider.cjs",
|
|
233
239
|
condition: "context.client",
|
|
234
240
|
|
|
@@ -236,66 +242,66 @@ you have an infinite render loop in your application.`
|
|
|
236
242
|
'sure you pass in your client via the "client" prop.'
|
|
237
243
|
},
|
|
238
244
|
|
|
239
|
-
|
|
245
|
+
40: {
|
|
240
246
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
241
247
|
condition: "fragment",
|
|
242
248
|
message: "Could not find fragment with name '%s'."
|
|
243
249
|
},
|
|
244
250
|
|
|
245
|
-
|
|
251
|
+
42: {
|
|
246
252
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
247
253
|
condition: "fragments.length === 1",
|
|
248
254
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
249
255
|
},
|
|
250
256
|
|
|
251
|
-
|
|
257
|
+
43: {
|
|
252
258
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
253
259
|
condition: "!!fragment",
|
|
254
260
|
message: `Could not find fragment with name "%s".`
|
|
255
261
|
},
|
|
256
262
|
|
|
257
|
-
|
|
263
|
+
44: {
|
|
258
264
|
file: "@apollo/client/__cjs/masking/maskOperation.cjs",
|
|
259
265
|
condition: "definition",
|
|
260
266
|
message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
|
|
261
267
|
},
|
|
262
268
|
|
|
263
|
-
|
|
269
|
+
48: {
|
|
264
270
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
265
271
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
266
272
|
message: "Expected document to contain `@client` fields."
|
|
267
273
|
},
|
|
268
274
|
|
|
269
|
-
|
|
275
|
+
49: {
|
|
270
276
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
271
277
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
272
278
|
message: "Expected document to contain `@client` fields."
|
|
273
279
|
},
|
|
274
280
|
|
|
275
|
-
|
|
281
|
+
50: {
|
|
276
282
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
277
283
|
condition: "fragment",
|
|
278
284
|
message: "No fragment named %s"
|
|
279
285
|
},
|
|
280
286
|
|
|
281
|
-
|
|
287
|
+
56: {
|
|
282
288
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
283
289
|
message: "Could not resolve __typename on object %o returned from resolver '%s'. '__typename' needs to be returned to properly resolve child fields."
|
|
284
290
|
},
|
|
285
291
|
|
|
286
|
-
|
|
292
|
+
57: {
|
|
287
293
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
288
294
|
condition: "fragment",
|
|
289
295
|
message: `No fragment named %s`
|
|
290
296
|
},
|
|
291
297
|
|
|
292
|
-
|
|
298
|
+
58: {
|
|
293
299
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
294
300
|
condition: "cache.fragmentMatches",
|
|
295
301
|
message: "The configured cache does not support fragment matching which will lead to incorrect results when executing local resolvers. Please use a cache that implements `fragmetMatches`."
|
|
296
302
|
},
|
|
297
303
|
|
|
298
|
-
|
|
304
|
+
60: {
|
|
299
305
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
300
306
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
301
307
|
|
|
@@ -304,13 +310,13 @@ you have an infinite render loop in your application.`
|
|
|
304
310
|
"parameter."
|
|
305
311
|
},
|
|
306
312
|
|
|
307
|
-
|
|
313
|
+
61: {
|
|
308
314
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
309
315
|
condition: "forward",
|
|
310
316
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
311
317
|
},
|
|
312
318
|
|
|
313
|
-
|
|
319
|
+
62: {
|
|
314
320
|
file: "@apollo/client/__cjs/link/http/checkFetcher.cjs",
|
|
315
321
|
condition: "fetcher || typeof fetch !== \"undefined\"",
|
|
316
322
|
|
|
@@ -328,30 +334,30 @@ const client = new ApolloClient({
|
|
|
328
334
|
`
|
|
329
335
|
},
|
|
330
336
|
|
|
331
|
-
|
|
337
|
+
63: {
|
|
332
338
|
file: "@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs",
|
|
333
339
|
condition: "response.body && typeof response.body.getReader === \"function\"",
|
|
334
340
|
message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
|
|
335
341
|
},
|
|
336
342
|
|
|
337
|
-
|
|
343
|
+
66: {
|
|
338
344
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
339
345
|
message: "request is not implemented"
|
|
340
346
|
},
|
|
341
347
|
|
|
342
|
-
|
|
348
|
+
67: {
|
|
343
349
|
file: "@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs",
|
|
344
350
|
condition: "pending",
|
|
345
351
|
message: "Could not find pending chunk for incremental value. Please file an issue for the Apollo Client team to investigate."
|
|
346
352
|
},
|
|
347
353
|
|
|
348
|
-
|
|
354
|
+
68: {
|
|
349
355
|
file: "@apollo/client/__cjs/incremental/handlers/notImplemented.cjs",
|
|
350
356
|
condition: "!(0, internal_1.hasDirectives)([\"defer\", \"stream\"], request.query)",
|
|
351
357
|
message: "`@defer` and `@stream` are not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."
|
|
352
358
|
},
|
|
353
359
|
|
|
354
|
-
|
|
360
|
+
69: {
|
|
355
361
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
356
362
|
condition: "options.cache",
|
|
357
363
|
|
|
@@ -360,7 +366,7 @@ const client = new ApolloClient({
|
|
|
360
366
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
361
367
|
},
|
|
362
368
|
|
|
363
|
-
|
|
369
|
+
70: {
|
|
364
370
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
365
371
|
condition: "options.link",
|
|
366
372
|
|
|
@@ -369,7 +375,7 @@ const client = new ApolloClient({
|
|
|
369
375
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
370
376
|
},
|
|
371
377
|
|
|
372
|
-
|
|
378
|
+
73: {
|
|
373
379
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
374
380
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
375
381
|
|
|
@@ -379,7 +385,7 @@ const client = new ApolloClient({
|
|
|
379
385
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
380
386
|
},
|
|
381
387
|
|
|
382
|
-
|
|
388
|
+
74: {
|
|
383
389
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
384
390
|
condition: "options.fetchPolicy !== \"standby\"",
|
|
385
391
|
|
|
@@ -388,7 +394,7 @@ const client = new ApolloClient({
|
|
|
388
394
|
"as cache-first or network-only."
|
|
389
395
|
},
|
|
390
396
|
|
|
391
|
-
|
|
397
|
+
75: {
|
|
392
398
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
393
399
|
condition: "options.query",
|
|
394
400
|
|
|
@@ -396,164 +402,164 @@ const client = new ApolloClient({
|
|
|
396
402
|
"in the query option."
|
|
397
403
|
},
|
|
398
404
|
|
|
399
|
-
|
|
405
|
+
76: {
|
|
400
406
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
401
407
|
condition: "options.query.kind === \"Document\"",
|
|
402
408
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
403
409
|
},
|
|
404
410
|
|
|
405
|
-
|
|
411
|
+
77: {
|
|
406
412
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
407
413
|
condition: "!options.returnPartialData",
|
|
408
414
|
message: "returnPartialData option only supported on watchQuery."
|
|
409
415
|
},
|
|
410
416
|
|
|
411
|
-
|
|
417
|
+
78: {
|
|
412
418
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
413
419
|
condition: "!options.pollInterval",
|
|
414
420
|
message: "pollInterval option only supported on watchQuery."
|
|
415
421
|
},
|
|
416
422
|
|
|
417
|
-
|
|
423
|
+
79: {
|
|
418
424
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
419
425
|
condition: "!options.notifyOnNetworkStatusChange",
|
|
420
426
|
message: "notifyOnNetworkStatusChange option only supported on watchQuery."
|
|
421
427
|
},
|
|
422
428
|
|
|
423
|
-
|
|
429
|
+
80: {
|
|
424
430
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
425
431
|
condition: "optionsWithDefaults.mutation",
|
|
426
432
|
message: "The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."
|
|
427
433
|
},
|
|
428
434
|
|
|
429
|
-
|
|
435
|
+
81: {
|
|
430
436
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
431
437
|
condition: "optionsWithDefaults.fetchPolicy === \"network-only\" ||\n optionsWithDefaults.fetchPolicy === \"no-cache\"",
|
|
432
438
|
message: "Mutations only support 'network-only' or 'no-cache' fetch policies. The default 'network-only' behavior automatically writes mutation results to the cache. Passing 'no-cache' skips the cache write."
|
|
433
439
|
},
|
|
434
440
|
|
|
435
|
-
|
|
441
|
+
83: {
|
|
436
442
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
437
443
|
condition: "fetchPolicy === \"standby\"",
|
|
438
444
|
message: "The `variablesUnknown` option can only be used together with a `standby` fetch policy."
|
|
439
445
|
},
|
|
440
446
|
|
|
441
|
-
|
|
447
|
+
85: {
|
|
442
448
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
443
449
|
condition: "this.options.fetchPolicy !== \"cache-only\"",
|
|
444
450
|
message: "Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."
|
|
445
451
|
},
|
|
446
452
|
|
|
447
|
-
|
|
453
|
+
86: {
|
|
448
454
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
449
455
|
condition: "updateQuery",
|
|
450
456
|
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
451
457
|
},
|
|
452
458
|
|
|
453
|
-
|
|
459
|
+
92: {
|
|
454
460
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
455
461
|
message: "QueryManager stopped while query was in flight"
|
|
456
462
|
},
|
|
457
463
|
|
|
458
|
-
|
|
464
|
+
93: {
|
|
459
465
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
460
466
|
condition: "this.localState",
|
|
461
467
|
message: "Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
462
468
|
},
|
|
463
469
|
|
|
464
|
-
|
|
470
|
+
94: {
|
|
465
471
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
466
472
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
467
473
|
},
|
|
468
474
|
|
|
469
|
-
|
|
475
|
+
97: {
|
|
470
476
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
471
477
|
condition: "!this.getDocumentInfo(query).hasClientExports || this.localState",
|
|
472
478
|
message: "Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
473
479
|
},
|
|
474
480
|
|
|
475
|
-
|
|
481
|
+
98: {
|
|
476
482
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
477
483
|
condition: "this.localState",
|
|
478
484
|
message: "%s '%s' contains `@client` fields but local state has not been configured."
|
|
479
485
|
},
|
|
480
486
|
|
|
481
|
-
|
|
487
|
+
99: {
|
|
482
488
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
483
489
|
condition: "!hasIncrementalDirective",
|
|
484
490
|
message: "%s '%s' contains `@client` and `@defer` directives. These cannot be used together."
|
|
485
491
|
},
|
|
486
492
|
|
|
487
|
-
|
|
493
|
+
100: {
|
|
488
494
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
489
495
|
condition: "this.localState",
|
|
490
496
|
message: "Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
491
497
|
},
|
|
492
498
|
|
|
493
|
-
|
|
499
|
+
102: {
|
|
494
500
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
495
501
|
condition: "this.localState",
|
|
496
502
|
message: "Query '%s' contains `@client` fields but local state has not been configured."
|
|
497
503
|
},
|
|
498
504
|
|
|
499
|
-
|
|
505
|
+
103: {
|
|
500
506
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
501
507
|
condition: "didEmitValue",
|
|
502
508
|
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
503
509
|
},
|
|
504
510
|
|
|
505
|
-
|
|
511
|
+
107: {
|
|
506
512
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
507
513
|
condition: "typeof dataId === \"string\"",
|
|
508
514
|
message: "store.merge expects a string ID"
|
|
509
515
|
},
|
|
510
516
|
|
|
511
|
-
|
|
517
|
+
110: {
|
|
512
518
|
file: "@apollo/client/__cjs/cache/inmemory/key-extractor.cjs",
|
|
513
519
|
condition: "extracted !== void 0",
|
|
514
520
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
515
521
|
},
|
|
516
522
|
|
|
517
|
-
|
|
523
|
+
111: {
|
|
518
524
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
519
525
|
condition: "!old || old === which",
|
|
520
526
|
message: `Cannot change root %s __typename more than once`
|
|
521
527
|
},
|
|
522
528
|
|
|
523
|
-
|
|
529
|
+
114: {
|
|
524
530
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
525
531
|
message: "Cannot automatically merge arrays"
|
|
526
532
|
},
|
|
527
533
|
|
|
528
|
-
|
|
534
|
+
117: {
|
|
529
535
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
530
536
|
message: `No fragment named %s`
|
|
531
537
|
},
|
|
532
538
|
|
|
533
|
-
|
|
539
|
+
118: {
|
|
534
540
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
535
541
|
condition: "!(0, utilities_1.isReference)(value)",
|
|
536
542
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
537
543
|
},
|
|
538
544
|
|
|
539
|
-
|
|
545
|
+
119: {
|
|
540
546
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
541
547
|
message: `Could not identify object %s`
|
|
542
548
|
},
|
|
543
549
|
|
|
544
|
-
|
|
550
|
+
121: {
|
|
545
551
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
546
552
|
message: `No fragment named %s`
|
|
547
553
|
}
|
|
548
554
|
};
|
|
549
555
|
|
|
550
556
|
exports.devDebug = {
|
|
551
|
-
|
|
557
|
+
82: {
|
|
552
558
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
553
559
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
554
560
|
},
|
|
555
561
|
|
|
556
|
-
|
|
562
|
+
89: {
|
|
557
563
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
558
564
|
message: `Missing cache result fields: %o`
|
|
559
565
|
}
|
|
@@ -562,67 +568,67 @@ exports.devDebug = {
|
|
|
562
568
|
exports.devLog = {};
|
|
563
569
|
|
|
564
570
|
exports.devWarn = {
|
|
565
|
-
|
|
571
|
+
37: {
|
|
566
572
|
file: "@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs",
|
|
567
573
|
message: "Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy."
|
|
568
574
|
},
|
|
569
575
|
|
|
570
|
-
|
|
576
|
+
41: {
|
|
571
577
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
572
578
|
message: "Accessing unmasked field on %s at path '%s'. This field will not be available when masking is enabled. Please read the field from the fragment instead."
|
|
573
579
|
},
|
|
574
580
|
|
|
575
|
-
|
|
581
|
+
45: {
|
|
576
582
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
577
583
|
message: "@unmask 'mode' argument does not support variables."
|
|
578
584
|
},
|
|
579
585
|
|
|
580
|
-
|
|
586
|
+
46: {
|
|
581
587
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
582
588
|
message: "@unmask 'mode' argument must be of type string."
|
|
583
589
|
},
|
|
584
590
|
|
|
585
|
-
|
|
591
|
+
47: {
|
|
586
592
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
587
593
|
message: "@unmask 'mode' argument does not recognize value '%s'."
|
|
588
594
|
},
|
|
589
595
|
|
|
590
|
-
|
|
596
|
+
51: {
|
|
591
597
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
592
598
|
message: "The '%s' field resolves the value from the cache, for example from a 'read' function, but a 'no-cache' fetch policy was used. The field value has been set to `null`. Either define a local resolver or use a fetch policy that uses the cache to ensure the field is resolved correctly."
|
|
593
599
|
},
|
|
594
600
|
|
|
595
|
-
|
|
601
|
+
52: {
|
|
596
602
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
597
603
|
message: "Could not find a resolver for the '%s' field nor does the cache resolve the field. The field value has been set to `null`. Either define a resolver for the field or ensure the cache can resolve the value, for example, by adding a 'read' function to a field policy in 'InMemoryCache'."
|
|
598
604
|
},
|
|
599
605
|
|
|
600
|
-
|
|
606
|
+
53: {
|
|
601
607
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
602
608
|
message: "The '%s' resolver returned `undefined` instead of a value. This is likely a bug in the resolver. If you didn't mean to return a value, return `null` instead."
|
|
603
609
|
},
|
|
604
610
|
|
|
605
|
-
|
|
611
|
+
54: {
|
|
606
612
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
607
613
|
message: "The '%s' field had no cached value and only forced resolvers were run. The value was set to `null`."
|
|
608
614
|
},
|
|
609
615
|
|
|
610
|
-
|
|
616
|
+
55: {
|
|
611
617
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
612
618
|
message: "The '%s' field on object %o returned `undefined` instead of a value. The parent resolver did not include the property in the returned value and there was no resolver defined for the field."
|
|
613
619
|
},
|
|
614
620
|
|
|
615
|
-
|
|
621
|
+
59: {
|
|
616
622
|
file: "@apollo/client/__cjs/link/ws/index.cjs",
|
|
617
623
|
message: "`WebSocketLink` uses the deprecated and unmaintained `subscriptions-transport-ws` library. This link is no longer maintained and will be removed in a future major version of Apollo Client. We recommend switching to `GraphQLWsLink` which uses the `graphql-ws` library to send GraphQL operations through WebSocket connections (https://the-guild.dev/graphql/ws)."
|
|
618
624
|
},
|
|
619
625
|
|
|
620
|
-
|
|
626
|
+
64: {
|
|
621
627
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
622
628
|
message: "[ApolloLink.split]: The test function returned a non-boolean value which could result in subtle bugs (e.g. such as using an `async` function which always returns a truthy value). Got `%o`."
|
|
623
629
|
},
|
|
624
630
|
|
|
625
|
-
|
|
631
|
+
65: {
|
|
626
632
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
627
633
|
|
|
628
634
|
message: "The terminating link provided to `ApolloLink.execute` called `forward` instead of handling the request. " +
|
|
@@ -631,29 +637,29 @@ exports.devWarn = {
|
|
|
631
637
|
"If you are using a split link, ensure each branch contains a terminating link that handles the request."
|
|
632
638
|
},
|
|
633
639
|
|
|
634
|
-
|
|
640
|
+
71: {
|
|
635
641
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
636
642
|
message: "`refetchOn` was set on query '%s' but no `RefetchEventManager` is configured on this `ApolloClient` instance. This option has no effect until a RefetchEventManager is connected to this client. Pass a `RefetchEventManager` instance to the `refetchEventManager` option on the `ApolloClient` constructor."
|
|
637
643
|
},
|
|
638
644
|
|
|
639
|
-
|
|
645
|
+
72: {
|
|
640
646
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
641
647
|
message: "`refetchOn` references the '%s' event on query '%s' but no source is configured for it on the `RefetchEventManager`. This event will never fire. Add a source for the event to the `sources` option or call `setEventSource` on the refetch event manager."
|
|
642
648
|
},
|
|
643
649
|
|
|
644
|
-
|
|
650
|
+
84: {
|
|
645
651
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
646
652
|
|
|
647
653
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
648
654
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
649
655
|
},
|
|
650
656
|
|
|
651
|
-
|
|
657
|
+
88: {
|
|
652
658
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
653
659
|
message: "Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."
|
|
654
660
|
},
|
|
655
661
|
|
|
656
|
-
|
|
662
|
+
90: {
|
|
657
663
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
658
664
|
|
|
659
665
|
message: `Apollo Client stopped refetching '%s' because the same incomplete cache result was already refetched. Automatic refetching was halted to prevent an endless cycle of network requests.
|
|
@@ -673,7 +679,7 @@ For more information about these options, please refer to the documentation:
|
|
|
673
679
|
`
|
|
674
680
|
},
|
|
675
681
|
|
|
676
|
-
|
|
682
|
+
91: {
|
|
677
683
|
file: "@apollo/client/__cjs/core/QueryInfo.cjs",
|
|
678
684
|
|
|
679
685
|
message: `The network result for query %s was written to the cache, but reading it back returned a partial result.
|
|
@@ -692,37 +698,37 @@ For more information, please refer to the documentation:
|
|
|
692
698
|
`
|
|
693
699
|
},
|
|
694
700
|
|
|
695
|
-
|
|
701
|
+
95: {
|
|
696
702
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
697
703
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
698
704
|
},
|
|
699
705
|
|
|
700
|
-
|
|
706
|
+
96: {
|
|
701
707
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
702
708
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
703
709
|
},
|
|
704
710
|
|
|
705
|
-
|
|
711
|
+
101: {
|
|
706
712
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
707
713
|
message: '[%s]: Fragments masked by data masking are inaccessible when using fetch policy "no-cache". Please add `@unmask` to each fragment spread to access the data.'
|
|
708
714
|
},
|
|
709
715
|
|
|
710
|
-
|
|
716
|
+
104: {
|
|
711
717
|
file: "@apollo/client/__cjs/core/RefetchEventManager.cjs",
|
|
712
718
|
message: "Connected an `ApolloClient` instance to a `RefetchEventManager` that was already connected to a different `ApolloClient`. The previous client has been disconnected and will no longer receive refetch events from this manager."
|
|
713
719
|
},
|
|
714
720
|
|
|
715
|
-
|
|
721
|
+
105: {
|
|
716
722
|
file: "@apollo/client/__cjs/core/RefetchEventManager.cjs",
|
|
717
723
|
message: "Received '%s' event but an `ApolloClient` instance is not connected to the `RefetchEventManager`. No queries will refetch. Pass the manager to the `refetchEventManager` option on the `ApolloClient` constructor."
|
|
718
724
|
},
|
|
719
725
|
|
|
720
|
-
|
|
726
|
+
106: {
|
|
721
727
|
file: "@apollo/client/__cjs/core/RefetchEventManager.cjs",
|
|
722
728
|
message: "Received '%s' event but no source is configured for it on the `RefetchEventManager`. No queries will refetch. Add the event to the `sources` option or call `setEventSource`."
|
|
723
729
|
},
|
|
724
730
|
|
|
725
|
-
|
|
731
|
+
108: {
|
|
726
732
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
727
733
|
|
|
728
734
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -730,34 +736,34 @@ For more information, please refer to the documentation:
|
|
|
730
736
|
"`toReference(object, true)`"
|
|
731
737
|
},
|
|
732
738
|
|
|
733
|
-
|
|
739
|
+
109: {
|
|
734
740
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
735
741
|
|
|
736
742
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
737
743
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
738
744
|
},
|
|
739
745
|
|
|
740
|
-
|
|
746
|
+
112: {
|
|
741
747
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
742
748
|
message: `Inferring subtype %s of supertype %s`
|
|
743
749
|
},
|
|
744
750
|
|
|
745
|
-
|
|
751
|
+
113: {
|
|
746
752
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
747
753
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
748
754
|
},
|
|
749
755
|
|
|
750
|
-
|
|
756
|
+
115: {
|
|
751
757
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
752
758
|
message: "The field policy for '%s' is configured with the '%s' scalar, so its '%s' function is ignored. Scalar configuration cannot be used with custom read or merge functions."
|
|
753
759
|
},
|
|
754
760
|
|
|
755
|
-
|
|
761
|
+
116: {
|
|
756
762
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
757
763
|
message: "The field policy for '%s' is configured with the '%s' scalar, but the field is not a scalar field because it contains a selection set. The field value remains unchanged."
|
|
758
764
|
},
|
|
759
765
|
|
|
760
|
-
|
|
766
|
+
122: {
|
|
761
767
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
762
768
|
|
|
763
769
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -776,29 +782,29 @@ For more information about these options, please refer to the documentation:
|
|
|
776
782
|
`
|
|
777
783
|
},
|
|
778
784
|
|
|
779
|
-
|
|
785
|
+
123: {
|
|
780
786
|
file: "@apollo/client/__cjs/cache/core/cache.cjs",
|
|
781
787
|
message: "Could not identify object passed to `from` for '%s' fragment, either because the object is non-normalized or the key fields are missing. If you are masking this object, please ensure the key fields are requested by the parent object."
|
|
782
788
|
}
|
|
783
789
|
};
|
|
784
790
|
|
|
785
791
|
exports.devError = {
|
|
786
|
-
|
|
792
|
+
15: {
|
|
787
793
|
file: "@apollo/client/__cjs/utilities/internal/removeDirectivesFromDocument.cjs",
|
|
788
794
|
message: `Could not find operation or fragment`
|
|
789
795
|
},
|
|
790
796
|
|
|
791
|
-
|
|
797
|
+
35: {
|
|
792
798
|
file: "@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs",
|
|
793
799
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
794
800
|
},
|
|
795
801
|
|
|
796
|
-
|
|
802
|
+
87: {
|
|
797
803
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
798
804
|
message: "Unhandled GraphQL subscription error"
|
|
799
805
|
},
|
|
800
806
|
|
|
801
|
-
|
|
807
|
+
120: {
|
|
802
808
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
803
809
|
message: `Missing field '%s' while writing result %o`
|
|
804
810
|
}
|