Company
Date Published
Author
Korinne Alpers
Word count
1588
Language
English
Hacker News points
None

Summary

The Apollo Federation and GraphOS now support entity interfaces, which allow for better collaboration and separation of concerns in distributed GraphQL APIs. Entity interfaces enable the creation of abstracted objects that can be used across multiple subgraphs without duplicating concrete implementations. The new feature introduces two directives: `@key` to define key fields on interfaces and `@interfaceObject` to declare an entity interface as an object type locally, allowing for easier addition of fields to the interface without requiring knowledge of all its concrete implementations. This improvement streamlines collaboration, reduces duplication, and enhances the flexibility of Apollo Federation.