{"repo":"dotansimha/graphql-typed-document-node","free":true,"listed":false,"github":"https://github.com/dotansimha/graphql-typed-document-node","clone":"git clone https://github.com/dotansimha/graphql-typed-document-node.git","description":"An improved version of `DocumentNode` for seamless TypeScript integration for GraphQL.","language":"TypeScript","stars":411,"topics":["graphql-codegen","graphql","typescript","types","generated"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"graphql-typed-document-node This repository is the home for graphql-typed-document-node and integration related to it. You can read more, see example and try it out live here graphql-typed-document-node is a development tool for creating fully typed DocumentNode objects. It means that just by passing the GraphQL query/mutation/subscription/fragment to a supporting GraphQL client library, you'll get a fully type result object and variables object. It made possible by TypeScript type inference. This project works in the following way: 1. Configure your project to use this library (see How to use? below). 2. Write your GraphQL operations ( query / mutation / subscription / fragment ). 3. GraphQL Code Generator will generate a TypedDocumentNode for your operations (which is a bundle of pre-compiled DocumentNode with the operation result type and variables type). 4. You'll get automatic type inference, auto-complete and type checking based on your GraphQL operation. Supported Libraries As of 2022, most GraphQL Client libraries supports TypedDocumentNode out of the box. The following patches are currently supported: Built-in support - @apollo/client (v4 and also, =3.2.0 , if you are using React Components ( ) you still need a patch ) - apollo-angular (since 2.6.0 ) - @urql/core (since 1.15.0 ) - @urql/preact (since 1.4.0 ) - urql (since 1.11.0 ) - @urql/exchange-graphcache (since 3.1.11 ) - @urql/svelte (since 1.1.3 ) - villus (since 1.0.0-beta.8 ) - graphql-js (since 15.2.0 ) - @v","default_branch":null,"files":null,"tree":[],"storefront":"/r/dotansimha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dotansimha/graphql-typed-document-node/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}