···4747- 📡 **Offline support** (work in progress) _Graphcache_ can persist and rehydrate its entire state,
4848 allowing an offline application to be built that is able to execute queries against the cache
4949 although the device is offline.
5050+- 🐛 [**Errors and warnings**](./errors.md). All potential errors are documented with information on
5151+ how you may be able to fix them.
50525153## Installation and Setup
5254
+274
docs/graphcache/errors.md
···11+# Help!
22+33+**This document lists out all errors and warnings in `@urql/exchange-graphcache`.**
44+55+Any unexpected behaviour, condition, or error will be marked by an error or warning
66+in development, which will output a helpful little message. Sometimes however, this
77+message may not actually tell you everything about what's going on.
88+99+This is a supporting document that explains every error and attempts to give more
1010+information on how you may be able to fix some issues or avoid these errors/warnings.
1111+1212+## (1) Invalid GraphQL document <a id="1"></a>
1313+1414+> Invalid GraphQL document: All GraphQL documents must contain an OperationDefinition
1515+> node for a query, subscription, or mutation.
1616+1717+There are multiple places where you're passing in GraphQL documents, either through
1818+methods on `Cache` (e.g. `cache.updateQuery`) or via `urql` using the `Client` or
1919+hooks like `useQuery`.
2020+2121+Your queries must always contain a main operation, so either a query, mutation, or
2222+subscription. This error occurs when this is missing, because the `DocumentNode`
2323+is maybe empty or only contains fragments.
2424+2525+## (2) Invalid Cache call <a id="2"></a>
2626+2727+> Invalid Cache call: The cache may only be accessed or mutated during
2828+> operations like write or query, or as part of its resolvers, updaters,
2929+> or optimistic configs.
3030+3131+If you're somehow accessing the `Cache` (an instance of `Store`) outside of any
3232+of the usual operations then this error will be thrown.
3333+3434+Please make sure that you're only calling methods on the `cache` as part of
3535+configs that you pass to your `cacheExchange`. Outside of these functions the cache
3636+must not be changed.
3737+3838+However when you're not using the `cacheExchange` and are trying to use the
3939+`Store` on its own, then you may run into issues where its global state wasn't
4040+initialised correctly.
4141+4242+This is a safe-guard to prevent any asynchronous work to take place, or to
4343+avoid mutating the cache outside of any normal operation.
4444+4545+## (3) Invalid Object type <a id="3"></a>
4646+4747+> Invalid Object type: The type `???` is not an object in the defined schema,
4848+> but the GraphQL document is traversing it.
4949+5050+When you're passing an introspected schema to the cache exchange, it is
5151+able to check whether all your queries are valid.
5252+This error occurs when an unknown type is found as part of a query or
5353+fragment.
5454+5555+Check whether your schema is up-to-date or whether you're using an invalid
5656+typename somewhere, maybe due to a typo.
5757+5858+## (4) Invalid field <a id="4"></a>
5959+6060+> Invalid field: The field `???` does not exist on `???`,
6161+> but the GraphQL document expects it to exist.<br />
6262+> Traversal will continue, however this may lead to undefined behavior!
6363+6464+Similarly to the previous warning, when you're passing an introspected
6565+schema to the cache exchange, it is able to check whether all your queries are valid.
6666+This warning occurs when an unknown field is found on a selection set as part
6767+of a query or fragment.
6868+6969+Check whether your schema is up-to-date or whether you're using an invalid
7070+field somewhere, maybe due to a typo.
7171+7272+As the warning states, this won't lead any operation to abort or an error
7373+to be thrown!
7474+7575+## (5) Invalid Abstract type <a id="5"></a>
7676+7777+> Invalid Abstract type: The type `???` is not an Interface or Union type
7878+> in the defined schema, but a fragment in the GraphQL document is using it
7979+> as a type condition.
8080+8181+When you're passing an introspected schema to the cache exchange, it becomes
8282+able to deterministically check whether an entity in the cache matches a fragment's
8383+type condition.
8484+8585+This applies to full fragments (`fragment _ on Interface`) or inline fragments
8686+(`... on Interface`), that apply to interfaces instead of to a concrete object typename.
8787+8888+Check whether your schema is up-to-date or whether you're using an invalid
8989+field somewhere, maybe due to a typo.
9090+9191+## (6) readFragment(...) was called with an empty fragment <a id="6"></a>
9292+9393+> readFragment(...) was called with an empty fragment.
9494+> You have to call it with at least one fragment in your GraphQL document.
9595+9696+You probably have called `cache.readFragment` with a GraphQL
9797+document that doesn't contain a main fragment.
9898+9999+This error occurs when no main fragment can be found, because the `DocumentNode`
100100+is maybe empty or does not contain fragments.
101101+102102+When you're calling a fragment method, please ensure that you're only passing fragments
103103+in your GraphQL document. The first fragment will be used to start writing data.
104104+105105+## (7) Can't generate a key for readFragment(...) <a id="7"></a>
106106+107107+> Can't generate a key for readFragment(...).
108108+> You have to pass an `id` or `_id` field or create a custom `keys` config for `???`.
109109+110110+You probably have called `cache.readFragment` with data that the cache can't generate a
111111+key for.
112112+113113+This may either happen because you're missing the `id` or `_id` field or some other
114114+fields for your custom `keys` config.
115115+116116+Please make sure that you include enough properties on your data so that `readFragment`
117117+can generate a key.
118118+119119+## (8) Invalid resolver data <a id="8"></a>
120120+121121+> Invalid resolver value: The resolver at `???` returned an invalid typename that
122122+> could not be reconciled with the cache.
123123+124124+This error may occur when you provide a cache resolver for a field using `resolvers` config.
125125+126126+The value that you returns needs to contain a `__typename` field and this field must
127127+match the `__typename` field that exists in the cache, if any. This is because it's not
128128+possible to return a different type for a single field.
129129+130130+Please check your schema for the type that your resolver has to return, then add a
131131+`__typename` field to your returned resolver value that matches this type.
132132+133133+## (9) Invalid resolver value <a id="9"></a>
134134+135135+> Invalid resolver value: The field at `???` is a scalar (number, boolean, etc),
136136+> but the GraphQL query expects a selection set for this field.
137137+138138+The GraphQL query that has been walked contains a selection set at the place where
139139+your resolver is located.
140140+141141+This means that a full entity object needs to be returned, but instead the cache
142142+received a number, boolean, or another scalar from your resolver.
143143+144144+Please check that your resolvers return scalars where there's no selection set,
145145+and entities where there is one.
146146+147147+## (10) writeOptimistic(...) was called with an operation that isn't a mutation <a id="10"></a>
148148+149149+> writeOptimistic(...) was called with an operation that is not a mutation.
150150+> This case is unsupported and should never occur.
151151+152152+This should never happen, please open an issue if it does. This occurs when `writeOptimistic`
153153+attempts to write an optimistic result for a query or subscription, instead of a mutation.
154154+155155+## (11) writeFragment(...) was called with an empty fragment <a id="11"></a>
156156+157157+> writeFragment(...) was called with an empty fragment.
158158+> You have to call it with at least one fragment in your GraphQL document.
159159+160160+You probably have called `cache.writeFragment` with a GraphQL
161161+document that doesn't contain a main fragment.
162162+163163+This error occurs when no main fragment can be found, because the `DocumentNode`
164164+is maybe empty or does not contain fragments.
165165+166166+When you're calling a fragment method, please ensure that you're only passing fragments
167167+in your GraphQL document. The first fragment will be used to start writing data.
168168+169169+## (12) Can't generate a key for writeFragment(...) <a id="12"></a>
170170+171171+> Can't generate a key for writeFragment(...) data.
172172+> You have to pass an `id` or `_id` field or create a custom `keys` config for `???`.
173173+174174+You probably have called `cache.writeFragment` with data that the cache can't generate a
175175+key for.
176176+177177+This may either happen because you're missing the `id` or `_id` field or some other
178178+fields for your custom `keys` config.
179179+180180+Please make sure that you include enough properties on your data so that `writeFragment`
181181+can generate a key.
182182+183183+## (13) Invalid undefined <a id="13"></a>
184184+185185+> Invalid undefined: The field at `???` is `undefined`, but the GraphQL query expects a
186186+> scalar (number, boolean, etc) / selection set for this field.
187187+188188+As data is written to the cache, this warning is issued when `undefined` is encountered.
189189+GraphQL results should never contain an `undefined` value, so this warning will let you
190190+know which part of your result did contain `undefined`.
191191+192192+## (15) Invalid key <a id="15"></a>
193193+194194+> Invalid key: The GraphQL query at the field at `???` has a selection set,
195195+> but no key could be generated for the data at this field.
196196+> You have to request `id` or `_id` fields for all selection sets or create a
197197+> custom `keys` config for `???`.
198198+> Entities without keys will be embedded directly on the parent entity.
199199+> If this is intentional, create a `keys` config for `???` that always returns null.
200200+201201+This error occurs when the cache can't generate a key for an entity. The key
202202+would then effectively be `null` and the entity won't be cached by a key.
203203+204204+Conceptually this means that an entity won't be normalised but will indeed
205205+be cached by the parent's key and field, which is displayed in the first
206206+part of the warning.
207207+208208+This may mean that you forgot to include an `id` or `_id` field.
209209+210210+But if your entity at that place doesn't have any `id` fields, then you may
211211+have to create a custom `keys` config. This `keys` function either needs to
212212+return a unique ID for your entity or it needs to explicitly return `null` to silence
213213+this warning.
214214+215215+## (16) Heuristic Fragment Matching <a id="16"></a>
216216+217217+> Heuristic Fragment Matching: A fragment is trying to match against the `???` type,
218218+> but the type condition is `???`. Since GraphQL allows for interfaces `???` may be
219219+> an interface.
220220+> A schema needs to be defined for this match to be deterministic, otherwise
221221+> the fragment will be matched heuristically!
222222+223223+This warning is issued on fragment matching. Fragment matching is the process
224224+of matching a fragment against a piece of data in the cache and that data's `__typename`
225225+field.
226226+227227+When the `__typename` field doesn't match the fragment's type, then we may be
228228+dealing with an interface and/or enum. In such a case the fragment may _still match_
229229+if it's referring to an interface (`... on Interface`). Graphcache is supposed to be
230230+usable without much config, so what it does in this case is apply a heuristic match.
231231+232232+In a heuristic fragment match we check whether all fields on the fragment are present
233233+in the cache, which is then treated as a fragment match.
234234+235235+When you pass an introspected schema to the cache, this warning will never be displayed
236236+as the cache can then do deterministic fragment matching using schema information.
237237+238238+## (17) Invalid type <a id="17"></a>
239239+240240+> Invalid type: The type `???` is used with @populate but does not exist.
241241+242242+When you're using the populate exchange with an introspected schema and add the
243243+`@populate` directive to fields it first checks whether the type is valid and
244244+exists on the schema.
245245+246246+If the field does not have sufficient type information because it doesn't exist
247247+on the schema or does not match expectations then this warning is logged.
248248+249249+Check whether your schema is up-to-date or whether you're using an invalid
250250+field somewhere, maybe due to a typo.
251251+252252+## (18) Invalid TypeInfo state <a id="18"></a>
253253+254254+> Invalid TypeInfo state: Found no flat schema type when one was expected.
255255+256256+When you're using the populate exchange with an introspected schema, it will
257257+start collecting used fragments and selection sets on all of your queries.
258258+This error may occur if it hits unexpected types or inexistent types when doing so.
259259+260260+Check whether your schema is up-to-date or whether you're using an invalid
261261+field somewhere, maybe due to a typo.
262262+263263+Please open an issue if it happens on a query that you expect to be supported
264264+by the `populateExchange`.
265265+266266+## (19) Can't generate a key for invalidate(...)
267267+268268+> Can't generate a key for invalidate(...).
269269+> You need to pass in a valid key (**typename:id) or an object with the "**typename" property and an "id" or "\_id" property.
270270+271271+You probably have called `cache.invalidate` with data that the cache can't generate a key for.
272272+273273+This may either happen because you're missing the `__typename` and `id` or `_id` field or if the last two
274274+aren't applicable to this entity a custom `keys` entry.
+2-2
docs/graphcache/schema-awareness.md
···66# Schema Awareness
7788As mentioned in the docs we allow for the schema to be passed
99-to the `cacheExchange` this allows for partial results and deterministic
99+to the `cacheExchange`. This allows for partial results and deterministic
1010fragment matching.
1111With deterministic fragment matching we mean that if you use an interface
1212-or a union we will be 100% sure you're allowed to do so, we'll check if the
1212+or a union we will be 100% sure you're allowed to do so, therefore we'll check if the
1313type you request can actually be returned from this union/interface.
14141515## Getting your schema
+6-273
exchanges/graphcache/help.md
···11-# Help!
22-33-**This document lists out all errors and warnings in `@urql/exchange-graphcache`.**
44-55-Any unexpected behaviour, condition, or error will be marked by an error or warning
66-in development, which will output a helpful little message. Sometimes however, this
77-message may not actually tell you everything about what's going on.
88-99-This is a supporting document that explains every error and attempts to give more
1010-information on how you may be able to fix some issues or avoid these errors/warnings.
1111-1212-## (1) Invalid GraphQL document <a id="1"></a>
1313-1414-> Invalid GraphQL document: All GraphQL documents must contain an OperationDefinition
1515-> node for a query, subscription, or mutation.
1616-1717-There are multiple places where you're passing in GraphQL documents, either through
1818-methods on `Cache` (e.g. `cache.updateQuery`) or via `urql` using the `Client` or
1919-hooks like `useQuery`.
2020-2121-Your queries must always contain a main operation, so either a query, mutation, or
2222-subscription. This error occurs when this is missing, because the `DocumentNode`
2323-is maybe empty or only contains fragments.
2424-2525-## (2) Invalid Cache call <a id="2"></a>
2626-2727-> Invalid Cache call: The cache may only be accessed or mutated during
2828-> operations like write or query, or as part of its resolvers, updaters,
2929-> or optimistic configs.
3030-3131-If you're somehow accessing the `Cache` (an instance of `Store`) outside of any
3232-of the usual operations then this error will be thrown.
3333-3434-Please make sure that you're only calling methods on the `cache` as part of
3535-configs that you pass to your `cacheExchange`. Outside of these functions the cache
3636-must not be changed.
3737-3838-However when you're not using the `cacheExchange` and are trying to use the
3939-`Store` on its own, then you may run into issues where its global state wasn't
4040-initialised correctly.
4141-4242-This is a safe-guard to prevent any asynchronous work to take place, or to
4343-avoid mutating the cache outside of any normal operation.
4444-4545-## (3) Invalid Object type <a id="3"></a>
4646-4747-> Invalid Object type: The type `???` is not an object in the defined schema,
4848-> but the GraphQL document is traversing it.
4949-5050-When you're passing an introspected schema to the cache exchange, it is
5151-able to check whether all your queries are valid.
5252-This error occurs when an unknown type is found as part of a query or
5353-fragment.
5454-5555-Check whether your schema is up-to-date or whether you're using an invalid
5656-typename somewhere, maybe due to a typo.
5757-5858-## (4) Invalid field <a id="4"></a>
5959-6060-> Invalid field: The field `???` does not exist on `???`,
6161-> but the GraphQL document expects it to exist.<br />
6262-> Traversal will continue, however this may lead to undefined behavior!
6363-6464-Similarly to the previous warning, when you're passing an introspected
6565-schema to the cache exchange, it is able to check whether all your queries are valid.
6666-This warning occurs when an unknown field is found on a selection set as part
6767-of a query or fragment.
6868-6969-Check whether your schema is up-to-date or whether you're using an invalid
7070-field somewhere, maybe due to a typo.
7171-7272-As the warning states, this won't lead any operation to abort or an error
7373-to be thrown!
7474-7575-## (5) Invalid Abstract type <a id="5"></a>
7676-7777-> Invalid Abstract type: The type `???` is not an Interface or Union type
7878-> in the defined schema, but a fragment in the GraphQL document is using it
7979-> as a type condition.
8080-8181-When you're passing an introspected schema to the cache exchange, it becomes
8282-able to deterministically check whether an entity in the cache matches a fragment's
8383-type condition.
8484-8585-This applies to full fragments (`fragment _ on Interface`) or inline fragments
8686-(`... on Interface`), that apply to interfaces instead of to a concrete object typename.
8787-8888-Check whether your schema is up-to-date or whether you're using an invalid
8989-field somewhere, maybe due to a typo.
9090-9191-## (6) readFragment(...) was called with an empty fragment <a id="6"></a>
9292-9393-> readFragment(...) was called with an empty fragment.
9494-> You have to call it with at least one fragment in your GraphQL document.
9595-9696-You probably have called `cache.readFragment` with a GraphQL
9797-document that doesn't contain a main fragment.
9898-9999-This error occurs when no main fragment can be found, because the `DocumentNode`
100100-is maybe empty or does not contain fragments.
101101-102102-When you're calling a fragment method, please ensure that you're only passing fragments
103103-in your GraphQL document. The first fragment will be used to start writing data.
104104-105105-## (7) Can't generate a key for readFragment(...) <a id="7"></a>
106106-107107-> Can't generate a key for readFragment(...).
108108-> You have to pass an `id` or `_id` field or create a custom `keys` config for `???`.
109109-110110-You probably have called `cache.readFragment` with data that the cache can't generate a
111111-key for.
112112-113113-This may either happen because you're missing the `id` or `_id` field or some other
114114-fields for your custom `keys` config.
11+This file (`exchanges/graphcache/help.md`) has been moved to `docs/graphcache/errors.md`
1152116116-Please make sure that you include enough properties on your data so that `readFragment`
117117-can generate a key.
118118-119119-## (8) Invalid resolver data <a id="8"></a>
120120-121121-> Invalid resolver value: The resolver at `???` returned an invalid typename that
122122-> could not be reconciled with the cache.
123123-124124-This error may occur when you provide a cache resolver for a field using `resolvers` config.
125125-126126-The value that you returns needs to contain a `__typename` field and this field must
127127-match the `__typename` field that exists in the cache, if any. This is because it's not
128128-possible to return a different type for a single field.
129129-130130-Please check your schema for the type that your resolver has to return, then add a
131131-`__typename` field to your returned resolver value that matches this type.
132132-133133-## (9) Invalid resolver value <a id="9"></a>
134134-135135-> Invalid resolver value: The field at `???` is a scalar (number, boolean, etc),
136136-> but the GraphQL query expects a selection set for this field.
137137-138138-The GraphQL query that has been walked contains a selection set at the place where
139139-your resolver is located.
140140-141141-This means that a full entity object needs to be returned, but instead the cache
142142-received a number, boolean, or another scalar from your resolver.
143143-144144-Please check that your resolvers return scalars where there's no selection set,
145145-and entities where there is one.
146146-147147-## (10) writeOptimistic(...) was called with an operation that isn't a mutation <a id="10"></a>
148148-149149-> writeOptimistic(...) was called with an operation that is not a mutation.
150150-> This case is unsupported and should never occur.
151151-152152-This should never happen, please open an issue if it does. This occurs when `writeOptimistic`
153153-attempts to write an optimistic result for a query or subscription, instead of a mutation.
154154-155155-## (11) writeFragment(...) was called with an empty fragment <a id="11"></a>
156156-157157-> writeFragment(...) was called with an empty fragment.
158158-> You have to call it with at least one fragment in your GraphQL document.
159159-160160-You probably have called `cache.writeFragment` with a GraphQL
161161-document that doesn't contain a main fragment.
162162-163163-This error occurs when no main fragment can be found, because the `DocumentNode`
164164-is maybe empty or does not contain fragments.
165165-166166-When you're calling a fragment method, please ensure that you're only passing fragments
167167-in your GraphQL document. The first fragment will be used to start writing data.
168168-169169-## (12) Can't generate a key for writeFragment(...) <a id="12"></a>
170170-171171-> Can't generate a key for writeFragment(...) data.
172172-> You have to pass an `id` or `_id` field or create a custom `keys` config for `???`.
173173-174174-You probably have called `cache.writeFragment` with data that the cache can't generate a
175175-key for.
176176-177177-This may either happen because you're missing the `id` or `_id` field or some other
178178-fields for your custom `keys` config.
179179-180180-Please make sure that you include enough properties on your data so that `writeFragment`
181181-can generate a key.
182182-183183-## (13) Invalid undefined <a id="13"></a>
184184-185185-> Invalid undefined: The field at `???` is `undefined`, but the GraphQL query expects a
186186-> scalar (number, boolean, etc) / selection set for this field.
187187-188188-As data is written to the cache, this warning is issued when `undefined` is encountered.
189189-GraphQL results should never contain an `undefined` value, so this warning will let you
190190-know which part of your result did contain `undefined`.
191191-192192-## (15) Invalid key <a id="15"></a>
193193-194194-> Invalid key: The GraphQL query at the field at `???` has a selection set,
195195-> but no key could be generated for the data at this field.
196196-> You have to request `id` or `_id` fields for all selection sets or create a
197197-> custom `keys` config for `???`.
198198-> Entities without keys will be embedded directly on the parent entity.
199199-> If this is intentional, create a `keys` config for `???` that always returns null.
200200-201201-This error occurs when the cache can't generate a key for an entity. The key
202202-would then effectively be `null` and the entity won't be cached by a key.
203203-204204-Conceptually this means that an entity won't be normalised but will indeed
205205-be cached by the parent's key and field, which is displayed in the first
206206-part of the warning.
207207-208208-This may mean that you forgot to include an `id` or `_id` field.
209209-210210-But if your entity at that place doesn't have any `id` fields, then you may
211211-have to create a custom `keys` config. This `keys` function either needs to
212212-return a unique ID for your entity or it needs to explicitly return `null` to silence
213213-this warning.
214214-215215-## (16) Heuristic Fragment Matching <a id="16"></a>
216216-217217-> Heuristic Fragment Matching: A fragment is trying to match against the `???` type,
218218-> but the type condition is `???`. Since GraphQL allows for interfaces `???` may be
219219-> an interface.
220220-> A schema needs to be defined for this match to be deterministic, otherwise
221221-> the fragment will be matched heuristically!
222222-223223-This warning is issued on fragment matching. Fragment matching is the process
224224-of matching a fragment against a piece of data in the cache and that data's `__typename`
225225-field.
226226-227227-When the `__typename` field doesn't match the fragment's type, then we may be
228228-dealing with an interface and/or enum. In such a case the fragment may _still match_
229229-if it's referring to an interface (`... on Interface`). Graphcache is supposed to be
230230-usable without much config, so what it does in this case is apply a heuristic match.
231231-232232-In a heuristic fragment match we check whether all fields on the fragment are present
233233-in the cache, which is then treated as a fragment match.
234234-235235-When you pass an introspected schema to the cache, this warning will never be displayed
236236-as the cache can then do deterministic fragment matching using schema information.
237237-238238-## (17) Invalid type <a id="17"></a>
239239-240240-> Invalid type: The type `???` is used with @populate but does not exist.
241241-242242-When you're using the populate exchange with an introspected schema and add the
243243-`@populate` directive to fields it first checks whether the type is valid and
244244-exists on the schema.
245245-246246-If the field does not have sufficient type information because it doesn't exist
247247-on the schema or does not match expectations then this warning is logged.
248248-249249-Check whether your schema is up-to-date or whether you're using an invalid
250250-field somewhere, maybe due to a typo.
251251-252252-## (18) Invalid TypeInfo state <a id="18"></a>
253253-254254-> Invalid TypeInfo state: Found no flat schema type when one was expected.
255255-256256-When you're using the populate exchange with an introspected schema, it will
257257-start collecting used fragments and selection sets on all of your queries.
258258-This error may occur if it hits unexpected types or inexistent types when doing so.
259259-260260-Check whether your schema is up-to-date or whether you're using an invalid
261261-field somewhere, maybe due to a typo.
262262-263263-Please open an issue if it happens on a query that you expect to be supported
264264-by the `populateExchange`.
265265-266266-## (19) Can't generate a key for invalidate(...)
267267-268268-> Can't generate a key for invalidate(...).
269269-> You need to pass in a valid key (**typename:id) or an object with the "**typename" property and an "id" or "\_id" property.
270270-271271-You probably have called `cache.invalidate` with data that the cache can't generate a key for.
272272-273273-This may either happen because you're missing the `__typename` and `id` or `_id` field or if the last two
274274-aren't applicable to this entity a custom `keys` entry.
33+If you are looking at this in a browser
44+* ...and your URL looks like this: `github.com/FormidableLabs/urql/blob/master/exchanges/graphcache/help.md#15`
55+* ...in the URL, replace `exchanges/graphcache/help.md` with `docs/graphcache/errors.md`
66+* ...and keep the `#15`
77+* ...and then you will get help with your error!
+3-2
exchanges/graphcache/src/helpers/help.ts
···11// These are guards that are used throughout the codebase to warn or error on
22// unexpected behaviour or conditions.
33// Every warning and error comes with a number that uniquely identifies them.
44-// You can read more about the messages themselves in `docs/help.md`
44+// You can read more about the messages themselves in `docs/graphcache/errors.md`
5566import { Kind, ExecutableDefinitionNode, InlineFragmentNode } from 'graphql';
77···27272828type DebugNode = ExecutableDefinitionNode | InlineFragmentNode;
29293030-const helpUrl = '\nhttps://bit.ly/38yWDau#';
3030+// URL unfurls to https://formidable.com/open-source/urql/docs/graphcache/errors/
3131+const helpUrl = '\nhttps://bit.ly/2XbVrpR#';
3132const cache = new Set<string>();
32333334export const currentDebugStack: string[] = [];
+3-2
exchanges/populate/src/helpers/help.ts
···11// These are guards that are used throughout the codebase to warn or error on
22// unexpected behaviour or conditions.
33// Every warning and error comes with a number that uniquely identifies them.
44-// You can read more about the messages themselves in `docs/help.md`
44+// You can read more about the messages themselves in `docs/graphcache/errors.md`
55export type ErrorCode =
66 | 1
77 | 2
···2222 | 18
2323 | 19;
24242525-const helpUrl = '\nhttps://bit.ly/38yWDau#';
2525+// URL unfurls to https://formidable.com/open-source/urql/docs/graphcache/errors/
2626+const helpUrl = '\nhttps://bit.ly/2XbVrpR#';
2627const cache = new Set<string>();
27282829export function invariant(