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.

Full v1 & v2 support, free on every plan including Hobby

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

  • @key

    Defines the primary key used to reference and merge a type across subgraphs.

  • @extends

    Marks a type as an extension of one owned by another subgraph.

  • @external

    Marks a field as owned by another subgraph, required for key or provided fields.

  • @requires

    Specifies fields from other subgraphs needed to resolve a given field.

  • @provides

    Declares that a subgraph can resolve a field usually fetched elsewhere.

  • @tag

    Applies metadata to schema elements, used for contracts and access control.

Federation v2

  • @shareable

    Allows a field to be resolved independently by multiple subgraphs.

  • @inaccessible

    Hides a field or type from the public API without removing it from subgraphs.

  • @override

    Transfers resolution of a field from one subgraph to another during migration.

  • @interfaceObject

    Lets a subgraph contribute fields to every implementer of an interface.

  • @composeDirective

    Preserves a custom directive through composition into the supergraph.

  • @authenticated

    Requires a validated request context before resolving a field or type.

  • @requiresScopes

    Enforces OAuth2 scopes on a field or type at the gateway.

  • @policy

    Delegates the access decision for a field or type to your own policy service.

  • @cost

    Assigns a weight to a field or type for demand control and cost limits.

  • @listSize

    Tells 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.

View the source on GitHub

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 methodology
GatewayName and variantCompatibilityPass rate of test casesTest CasesAll available test casesTest SuitesTest cases grouped by feature
Hive Gateway (Rust QP)
100.00% 210 48
Hive Router
100.00% 210 48
Cosmo Router
99.05% 208 2 46 2
Hive Gateway
99.05% 208 2 47 1
Apollo Router v3 (dev-v3.x, incremental planner)
97.14% 204 6 45 3
Apollo Router
95.24% 200 10 43 5
Hot Chocolate Fusion
95.24% 200 10 44 4
Apollo Gateway
94.76% 199 11 42 6
Apollo Router v3 (dev-v3.x)
94.76% 199 11 42 6
Grafbase Gateway
88.57% 186 24 40 8
Passed tests
Failed tests
Perfect compatibility
75% and higher
Less than 75%

Complete Federation support, on every plan

No feature gating, no "enterprise-only" directives - Federation support is unlimited from the free Hobby plan up.

Where teams use Hive's Federation support

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.

Explore Hive 360° GraphQL Ecosystem to reach full potential

Learn more

Get your API game right.