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