Company
Date Published
Author
Robin Ricard
Word count
987
Language
English
Hacker News points
None

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.