Back to Skills

apollo-connectors

Guide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors with @source and @connect directives. Use this skill when the user: (1) mentions "connectors", "Apollo Connectors", or "REST Connector", (2) wants to integrate a REST API into GraphQL, (3) references @source or @connect directives, (4) works with files containing "# Note to AI Friends: This is an Apollo Connectors schema".

101stars12forksUpdated 8/5/2026

Security Assessment

Safe(95/100)
Security Score95/100

About apollo-connectors

This skill is a structured authoring guide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors and the @source and @connect directives. It addresses the difficulty of correctly mapping REST responses into a federated GraphQL schema by giving an AI assistant a disciplined process and a set of reference files covering the connector grammar, transformation methods, mapping variables, entity patterns, and validation commands.

The workflow enforces a five-step process: research the API and its responses, implement a schema from a provided template, validate by composing the supergraph with rover, execute the connector with rover to confirm behavior, and add tests run via rover connector test. It documents key rules for selection mapping (preferring sub-selections, avoiding an unnecessary root selector, correct field aliasing), entity modeling with @connect, and literal values. Reference files enumerate the exact string, array, logical, math, and type-coercion methods available and explicitly instruct the assistant not to invent method names, plus a troubleshooting guide covering common errors like missing entity connectors, incorrect federation and connect versions, and invalid bodies. If GraphOS MCP tools are available it uses connectors-spec and documentation search tools to ground its work.

It targets GraphQL platform engineers and backend developers building or maintaining Apollo Federation supergraphs who want to wrap existing REST endpoints without writing custom resolver code. The skill only shells out to the read-and-compose oriented rover CLI, making it a documentation-and-scaffolding aid rather than a tool that performs risky operations.

FAQ

What do I need installed to use this skill?

The rover CLI must be installed. The skill is designed for Claude Code and similar AI coding assistants and is MIT licensed.

Which directives and versions does it target?

It uses the @source and @connect directives and defaults to federation/v2.12 and connect/v0.3 unless you specify otherwise.

How does it validate the connector schema?

It runs rover supergraph compose against a supergraph.yaml config, then rover connector run to execute a field, and rover connector test for test coverage.

Can it invent transformation methods if it doesn't know one?

No. The reference material explicitly instructs it to only use the documented methods (such as slice, filter, map, joinNotNull, match) and never make up method names.

Does it require Apollo's MCP tools?

No, but if GraphOS MCP tools like connectors-spec and apollo_docs_search are available it uses them to fetch the spec and documentation before implementing.

All Files

7 files
references/methods.md5.6 KB
View
references/troubleshooting.md7.8 KB
View
references/entities.md6.9 KB
View
references/grammar.md3.9 KB
View
references/validation.md7.6 KB
View
references/variables.md7.2 KB
View
SKILL.md5.4 KB
View

Install apollo-connectors

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill