Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

An enhanced GraphQL developer experience with TypeScript

Blog post from Apollo

Post Details
Company
Date Published
Author
Robin Ricard
Word Count
987
Language
English
Hacker News Points
-
Summary

The Apollo project has introduced a complete GraphQL developer experience for TypeScript, which includes automatic query and fragments loading using graphql-document-collector. This tool gathers all documents (fragments, queries, mutations) in a single file containing auto-resolved fragments. Additionally, the apollo-codegen generator converts GraphQL documents and schema to TypeScript interfaces, providing automatic type annotation generation. The new setup allows developers to write correct GraphQL queries from the start, with ESLint providing real-time error checking for .graphql files. This improved development experience is designed to streamline the process of working with static GraphQL documents.