···11+---
22+'@urql/exchange-throw-on-error': patch
33+---
44+55+Update `graphql-toe` and add more detail to README.
+14-2
exchanges/throw-on-error/README.md
···11# @urql/exchange-throw-on-error (Exchange factory)
2233-`@urql/exchange-throw-on-error` is an exchange for the [`urql`](../../README.md) GraphQL client that makes field access to data throw an error if the field errored.
33+`@urql/exchange-throw-on-error` is an exchange for the [`urql`](https://github.com/urql-graphql/urql) GraphQL client that throws on field access to errored fields.
4455-It is built on top of the [`graphql-toe`](https://github.com/graphile/graphql-toe) package.
55+It is built on top of the [`graphql-toe`](https://github.com/graphile/graphql-toe) package - please see that package for more information.
6677## Quick Start Guide
88···1313# or
1414npm install --save @urql/exchange-throw-on-error
1515```
1616+1717+Then add the `throwOnErrorExchange`, to your client:
1818+1919+```js
2020+import { createClient, cacheExchange, fetchExchange } from 'urql';
2121+import { throwOnErrorExchange } from '@urql/exchange-throw-on-error';
2222+2323+const client = createClient({
2424+ url: '/graphql',
2525+ exchanges: [cacheExchange, throwOnErrorExchange(), fetchExchange],
2626+});
2727+```
···327327 specifier: workspace:^5.1.1
328328 version: link:../../packages/core
329329 graphql-toe:
330330- specifier: 0.1.2
331331- version: 0.1.2
330330+ specifier: ^1.0.0-rc.0
331331+ version: 1.0.0-rc.0
332332 wonka:
333333 specifier: ^6.3.2
334334 version: 6.3.2
···50695069 graphemer@1.4.0:
50705070 resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}
5071507150725072- graphql-toe@0.1.2:
50735073- resolution: {integrity: sha512-XK04wXEHbLY33YHoPAnLMIafRKSOn7FTWzTCob23GC6o8DnO4ibkA8Aje+Udee8QdXx46TV6m6LQM9iU8C9vwQ==}
50725072+ graphql-toe@1.0.0-rc.0:
50735073+ resolution: {integrity: sha512-/reEXGT1QCrQkweajQvbK298u/duyEHGftzKlFO0K3kD050USxD55bQw0QctjhCzKEZJIvdkoCxoUfijHv4izg==}
5074507450755075 graphql@16.9.0:
50765076 resolution: {integrity: sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==}
···76287628 engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
76297629 deprecated: |-
76307630 You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
76317631-76327631 (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
7633763276347633 q@1.5.1:
···76367635 engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
76377636 deprecated: |-
76387637 You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
76397639-76407638 (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
7641763976427640 qs@6.10.4:
···15811158091581215810 graphemer@1.4.0: {}
15813158111581415814- graphql-toe@0.1.2: {}
1581215812+ graphql-toe@1.0.0-rc.0: {}
15815158131581615814 graphql@16.9.0: {}
1581715815