@urql/exchange-throw-on-error
is an exchange for the urql
GraphQL client that makes field access to data throw an error if the field errored.
It is built on top of the graphql-toe
package.
First install @urql/exchange-throw-on-error
alongside urql
:
yarn add @urql/exchange-throw-on-error
# or
npm install --save @urql/exchange-throw-on-error