apollo-connectors

Integrate REST APIs into GraphQL supergraphs using Apollo Connectors directives.

102|12|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/apollographql/skills --skill apollo-connectors-apollographql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apollo-connectors
Source: https://github.com/apollographql/skills/tree/main/skills/apollo-connectors
Command: npx skills add https://github.com/apollographql/skills --skill apollo-connectors-apollographql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of connecting external REST APIs to your GraphQL supergraph, enabling seamless data integration.

Core Features & Use Cases

  • REST API Integration: Define GraphQL types that map directly to REST API endpoints using @source and @connect directives.
  • Entity Resolution: Implement entity resolvers to fetch data by key from REST APIs.
  • Batching: Optimize performance by batching multiple requests into single API calls.
  • Use Case: You need to expose data from a legacy REST service as part of your Apollo Federation supergraph. This Skill helps you define the GraphQL schema and connector logic to achieve this.

Quick Start

Use the apollo-connectors skill to create a new connector schema for integrating a REST API.

Frequently Asked Questions about apollo-connectors

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

FAQPage Schema
How do I integrate a REST API into an Apollo Federation supergraph?

To integrate REST APIs into an Apollo Federation supergraph, define GraphQL types mapped directly to REST endpoints using the `@source` and `@connect` directives, enabling seamless data resolution without writing custom resolvers.

What is the best way to fetch multiple entities from a REST API in a GraphQL schema?

The best way to fetch multiple entities from a REST API in a GraphQL schema is implementing entity resolution with batching, which optimizes performance by combining multiple requests into single API calls using Apollo Connectors and `@connect` directives.

How do I validate Apollo Connectors schema definitions using the rover CLI?

You validate Apollo Connectors schema definitions using the `rover` CLI to check selection mapping grammar, HTTP methods, variable interpolation, and entity patterns before deploying your GraphQL supergraph integration.

Can I map GraphQL fields to specific HTTP methods on a REST API?

Yes, you can map GraphQL fields to specific HTTP methods on a REST API using the `@connect` directive, which supports selection mapping grammar, HTTP method configuration, and variable interpolation for endpoint requests.

Do I need custom resolvers to expose legacy REST service data in GraphQL?

No, you do not need custom resolvers to expose legacy REST service data in GraphQL when using Apollo Connectors, because the `@source` and `@connect` directives handle the data integration and entity resolution directly within the schema.