Meeting the need for GraphQL Federation
The OpenFederation Specification is an open specification that aims to make federation in GraphQL a standardized feature, instead of being confined to any proprietary solution such as Apollo Federation. The goal is to standardize how GraphQL schemas declare their federation capabilities and establish a universal way to build gateway implementations.
The Open Federation Specification, which is still in draft status at the time of writing, is designed to evolve GraphQL Federation in a way that it can be adopted across all GraphQL runtimes and tools, ensuring greater interoperability and consistency.
Here are some principal aspects defined in the specification:
- Federated schema directives: Details how to use certain directives such as
@key
,@requires
,@provides
, and@extends
to establish relationships across types and services. - Type system extensions: Defines a set of type system extensions that need to be added by all service...