graphql-transform-federation

JSON →
library 2.2.0 ·javascript
verified Jun 7, 2026

A library that retrofits GraphQL federation support (Apollo Federation spec) onto an existing GraphQL schema that was not originally built for federation. v2.2.0 is current, with stable maintenance releases. Unlike apollo-server's built-in federation, this works with remote schemas, generated schemas, or any schema you can't rebuild from scratch. It adds @key, @external, @provides, @requires directives and __resolveReference resolvers. Requires graphql 14/15 and @apollo/federation 0.x peer dependencies. Ships TypeScript types.