Apollo Federation v1 and v2 support in Hive
Compose, validate and evolve Apollo Federation v1 and v2 subgraphs into one supergraph - served by Hive Gateway, Hive Router, Apollo Router or any Federation-compliant router of your choice that supports Supergraph SDL.
The problem
You are already using Federation v1 and want to adopt Federation v2 features.
Most federation platforms force a choice: pick them, then rebuild your gateway and workflows around their vendor-specific implementation.
Our solution
Hive Console composes Federation v1 and v2 subgraphs into a single supergraph and validates all subgraphs for correctness.
Composition itself runs on our own open-source implementation, which emits a standard supergraph SDL rather than a vendor-specific format.
Hive Gateway, Hive Router, Apollo Router or any Federation-compliant router, then serves the result, with an open-source compliance audit to prove it.
Migrate at your own pace
Keep Apollo Router running while you move off Apollo GraphOS
Hive Console composes a standard supergraph SDL, so you can adopt it as your schema registry today while your existing Apollo Router keeps serving traffic exactly as it does now. Hive ships a build of Apollo Router that loads the supergraph from Hive and reports usage back.
Replacing the router is the riskier step, and it is worth doing separately. Production routers carry custom plugins, authentication and rate limiting that took months to get right, and swapping the router on the same day means validating all of it again at once.
When you are ready, run Hive Router next to Apollo Router against the same supergraph, compare them, and cut over on your own schedule.
Directive support
Federation v1 and v2 directives, fully supported by Hive Console's schema registry, Hive Gateway and Hive Router.
Federation v1
-
@keyDefines the primary key used to reference and merge a type across subgraphs.
-
@extendsMarks a type as an extension of one owned by another subgraph.
-
@externalMarks a field as owned by another subgraph, required for key or provided fields.
-
@requiresSpecifies fields from other subgraphs needed to resolve a given field.
-
@providesDeclares that a subgraph can resolve a field usually fetched elsewhere.
-
@tagApplies metadata to schema elements, used for contracts and access control.
Federation v2
-
@shareableAllows a field to be resolved independently by multiple subgraphs.
-
@inaccessibleHides a field or type from the public API without removing it from subgraphs.
-
@overrideTransfers resolution of a field from one subgraph to another during migration.
-
@interfaceObjectLets a subgraph contribute fields to every implementer of an interface.
-
@composeDirectivePreserves a custom directive through composition into the supergraph.
-
@authenticatedRequires a validated request context before resolving a field or type.
-
@requiresScopesEnforces OAuth2 scopes on a field or type at the gateway.
-
@policyDelegates the access decision for a field or type to your own policy service.
-
@costAssigns a weight to a field or type for demand control and cost limits.
-
@listSizeTells demand control how many items a list field is expected to return.
Open source, not a black box
We maintain our own composition implementation
Composition isn't a wrapper around a vendor's closed-source binary. federation-composition is our own open-source, MIT-licensed implementation of the Federation v1 and v2 composition algorithm, and it emits a standard supergraph SDL - not a proprietary or vendor-specific format - so the output runs on Hive Gateway, Apollo Router, Hive Router or any other Federation-compliant router.
Apollo Federation compatibility, tested in the open
Live results of our open-source audit, which runs the same test suite against every Apollo Federation gateway and router.
Learn how Hive Gateway performs against other gateways in terms of correctness and compliance with the Apollo Federation specification
Learn about our audit and methodologyComplete Federation support, on every plan
No feature gating, no "enterprise-only" directives - Federation support is unlimited from the free Hobby plan up.
- Federation v1 and v2 subgraph composition, mixed or matched
- Unlimited subgraph publishes and schema checks
- Self-host every component, or use Hive Cloud
- Federated subscriptions over WebSocket and SSE
- JWT authentication and role-based access control at the gateway
- OpenTelemetry tracing and Prometheus metrics
- Persisted documents and incremental delivery (@defer / @stream)
Where teams use Hive's Federation support
Migrating from v1 to v2
Adopt v2 directives like
@shareableand@overrideone subgraph at a time. Schema checks catch breaking changes before you publish, so there's no need for a big-bang cutover.Multi-team, mixed versions
Legacy teams keep shipping v1 subgraphs while newer services adopt v2 features. The schema registry composes both into a single, consistent supergraph.
Choosing your own gateway
Our open-source
federation-compositionlibrary outputs a standard supergraph SDL, not a vendor-specific format. Run it with Hive Gateway, Hive Router, Apollo Router, or bring any other Federation-compliant router - there's no vendor lock-in.
Frequently Asked Questions About Federation Support
Does Hive Console support both Apollo Federation v1 and v2?
Yes. The schema registry composes subgraphs written for Federation v1 and for v2.0 through v2.9 - even mixed together in the same supergraph - and validates every directive before it reaches production.
Which Federation v2 directives does Hive support?
Hive composes @key, @shareable, @inaccessible, @override (including progressive override), @interfaceObject, @composeDirective, @authenticated, @requiresScopes, @policy, @cost and @listSize, along with the Federation v1 directives. Apollo Connectors and @cacheTag are not supported yet.
Is your Federation composition open source?
Yes. Composition is powered by federation-composition, our own open-source, MIT-licensed implementation of the Federation v1 and v2 composition algorithm. It's not a wrapper around a vendor's closed-source binary.
Do I have to migrate every subgraph to v2 at once?
No. Federation v1 and v2 subgraphs can coexist in the same supergraph, so teams can migrate one subgraph at a time, at their own pace, without a big-bang rewrite.
Which gateway executes the federated queries?
Hive Gateway and Hive Router, our open-source (MIT licensed) GraphQL routers, or any other Federation-compliant router of your choice. Both run Federation v1 and v2 subgraphs, and Hive Router supports Federation features up to v2.9. Our composition library emits a standard supergraph SDL, not a proprietary or vendor-specific format, so there is no lock-in to a specific gateway.
How do you verify Federation spec compliance?
We maintain an open-source Federation compatibility audit that tests Hive Gateway and other gateways against the same directive and query-planning test suite.
Is Federation support available on the free plan?
Yes. Federation v1 and v2 support, and every Hive Gateway feature, is unlimited on the free Hobby plan. Compare plans.