{"library":"graphql-schema-typescript","type":"library","category":null,"description":"graphql-schema-typescript is a utility library for generating TypeScript type definitions directly from GraphQL schema definitions. Unlike client-side code generators such as Apollo-codegen, which focus on types for client queries, this library's primary purpose is to produce type-safe interfaces for GraphQL server-side development, specifically for writing resolvers. The current stable version is 1.6.1. While there isn't a strict release cadence, the project is actively maintained with recent updates to support newer GraphQL versions. Key differentiators include a 1-to-1 mapping from GraphQL types to TypeScript interfaces, conversion of GraphQL descriptions to JSDoc comments, and specialized types for resolver arguments, parent objects, and return values (e.g., `GQLResolver`, `RootQueryToUsersArgs`, `RootQueryToUsersResolver`). It offers both a programmatic API and a command-line interface (CLI) for integration into build workflows, supporting `.gql` and `.graphqls` schema file extensions.","language":"javascript","status":"active","version":"1.6.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install graphql-schema-typescript","imports":["import { generateTypeScriptTypes } from 'graphql-schema-typescript';","import type { GenerateTypescriptOptions } from 'graphql-schema-typescript';"]},{"cmd":"yarn add graphql-schema-typescript","imports":[]},{"cmd":"pnpm add graphql-schema-typescript","imports":[]}],"homepage":null,"github":"https://github.com/dangcuuson/graphql-schema-typescript","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/graphql-schema-typescript","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/graphql-schema-typescript/compatibility"}}