Company
Date Published
Author
Jens Neuse
Word count
2680
Language
English
Hacker News points
2

Summary

The state of distributed GraphQL in 2024 is an emerging technology that has evolved from its initial introduction by Facebook in 2015. GraphQL is now used by companies of all sizes to build APIs for web and mobile applications, and its adoption is being driven by the need to build complex applications that require data from different sources. The Composite Schema Specification is a new specification that aims to standardize distributed GraphQL, building on top of Apollo Federation's concepts. It introduces entity resolvers, which are regular resolvers that can be used to resolve fields in an entity, and provides a mechanism for establishing semantic equivalence between field arguments and entity fields. The specification also includes directives such as `@shareable`, `@require`, `@provides`, `@external`, and `@override` that are similar to Apollo Federation's directives but with some differences. Additionally, the specification includes an `@internal` directive that marks a field as internal to a Subgraph. The Composite Schema Specification will be implemented by WunderGraph Cosmo as soon as it reaches a stable state, which is seen as a positive development for the ecosystem. Overall, the specification is a huge step forward for the GraphQL ecosystem and aims to create a more unified and stronger ecosystem.