seniorGraphQL

What is Schema Stitching vs Schema Federation in depth?

Updated Apr 28, 2026

Short answer

Stitching relies on a centralized gateway imperative configuration. Federation pushes configuration down to autonomous subgraphs.

Deep explanation

Stitching requires the Gateway developer to write code that maps extend type User and defines how to query the target service. Federation uses the @key directive. A subgraph says type User @key(fields: "id"), and the Gateway automatically knows how to construct an entity execution plan using _entities queries without custom gateway logic.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More GraphQL interview questions

View all →