Company
Date Published
Author
Mikhail Novikov
Word count
1629
Language
English
Hacker News points
None

Summary

Gatsby has introduced a new Schema Customization API that offers users enhanced control over the inferred schema, addressing common issues related to data source integration. Released as a preview, this API is part of a substantial refactoring effort to improve Gatsby's GraphQL functionality. It includes two main components: the `createTypes` action for defining or fixing type definitions to prevent schema changes due to data alterations, and the `createResolvers` action for adding or modifying resolvers and extending the schema's functionality. This update aims to align Gatsby with common GraphQL practices where schemas serve as the source of truth, enabling more robust and flexible data querying. The changes also bring improvements like normalized type names and deterministic inference, while leveraging the graphql-compose library for efficient schema management. The Gatsby team invites user feedback on this alpha release to refine the feature further, reflecting its commitment to evolving the platform based on community insights.