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