New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@urql/exchange-throw-on-error

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@urql/exchange-throw-on-error

An exchange for throw-on-error support in urql

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
6
Created
Source

@urql/exchange-throw-on-error (Exchange factory)

@urql/exchange-throw-on-error is an exchange for the urql GraphQL client that throws on field access to errored fields.

It is built on top of the graphql-toe package - please see that package for more information.

Quick Start Guide

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

Then add the throwOnErrorExchange, to your client:

import { createClient, cacheExchange, fetchExchange } from 'urql';
import { throwOnErrorExchange } from '@urql/exchange-throw-on-error';

const client = createClient({
  url: '/graphql',
  exchanges: [cacheExchange, throwOnErrorExchange(), fetchExchange],
});

Keywords

urql

FAQs

Package last updated on 09 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts