federation

Coordinate GraphQL schemas across subgraphs into a unified supergraph.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/imaginationeverywhere/clara-code --skill federation-imaginationeverywhere
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: federation
Source: https://github.com/imaginationeverywhere/clara-code/tree/main/.cursor/skills/federation
Command: npx skills add https://github.com/imaginationeverywhere/clara-code --skill federation-imaginationeverywhere

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Federation coordinates GraphQL schemas across multiple subgraphs, enabling a unified API without gatekeeping data.

Core Features & Use Cases

  • Subgraph design with entity ownership, keys, and references
  • Gateway configuration with Apollo Router and schema composition
  • Distributed data management and query planning for federated APIs
  • Use Case: split product, user, and order services into subgraphs and expose a single supergraph

Quick Start

Publish your first subgraph and configure the gateway to compose a supergraph.

Frequently Asked Questions about federation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a federated GraphQL API from multiple microservices?

Build a federated GraphQL API by coordinating schemas across multiple subgraphs to deliver a unified supergraph. This allows you to split product, user, and order services into subgraphs while exposing a single API endpoint.

What is the best way to manage distributed data in GraphQL microservice architectures?

Manage distributed data by applying federation concepts like @key, @requires, and @provides to subgraph design. This enables distributed data management and query planning for federated APIs without gatekeeping data.

How does Apollo Router handle gateway routing for a federated supergraph?

Apollo Router handles gateway routing by composing multiple subgraph schemas into a unified supergraph. It integrates with Apollo Server to coordinate query planning and route requests across the federated subgraphs.

Can I use @key and @requires directives to split entity ownership across subgraphs?

Use @key and @requires directives to define entity ownership and references across subgraphs. These federation concepts allow separate services to manage their own data while contributing to the unified supergraph schema.

When do I need GraphQL federation for my microservices?

You need GraphQL federation when coordinating schemas across multiple subgraphs to create a unified API. It solves the problem of exposing a single supergraph without gatekeeping data from individual microservices.

How do I publish my first subgraph and configure the gateway for schema composition?

Publish your first subgraph and configure the gateway to compose a supergraph. This quick start process involves defining subgraph schemas with entity ownership and setting up Apollo Router for schema composition.