{"library":"graphql-toe","type":"library","category":null,"description":"A <512 byte zero-dependency library that transforms GraphQL responses by replacing errored fields with throwing getters. Version 1.0.0 stable. It solves the ambiguous `null` problem in GraphQL by throwing when you access a field that errored, allowing natural error handling with try/catch or React ErrorBoundary. Works with any GraphQL client (Apollo, URQL, fetch) that returns `{ data, errors }` — unlike Relay which has native directives. Ships TypeScript types, supports ESM and CJS.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","graphql","throw","error","errors","raise","exception","semantic","null","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-toe","imports":["import { toe } from 'graphql-toe'","import { toe } from 'graphql-toe'","import { GraphQLError } from 'graphql'"]},{"cmd":"yarn add graphql-toe","imports":[]},{"cmd":"pnpm add graphql-toe","imports":[]}],"homepage":"https://github.com/graphile/graphql-toe","github":"https+git://github.com/graphile/graphql-toe","docs":null,"changelog":null,"pypi":null,"npm":"graphql-toe","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}