跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

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

目的

To enable developers to seamlessly integrate REST APIs into their GraphQL supergraphs by providing a structured guide and tools for creating Apollo Connectors schemas.

功能

  • Integrate REST APIs into GraphQL using Apollo Connectors
  • Utilize @source and @connect directives for schema definition
  • Follow a 5-step process: research, implement, validate, execute, test
  • Leverage Rover CLI for schema composition, execution, and testing
  • Access detailed reference files for grammar, methods, and variables

使用场景

  • When connecting REST APIs to a GraphQL supergraph
  • When writing @source and @connect directives for Apollo Connectors
  • When needing to implement entity resolvers with batching
  • When validating connector schemas with rover

非目标

  • Writing custom GraphQL resolvers outside of the connector framework
  • Managing the deployment of the GraphQL supergraph
  • Directly interacting with REST APIs without using Apollo Connectors

工作流

  1. Research the API and example responses
  2. Fetch relevant documentation
  3. Create the schema using the provided template
  4. Validate the schema with `rover supergraph compose`
  5. Execute the connector with `rover connector run`
  6. Test the connector with `rover connector test`

实践

  • Schema Design
  • API Integration
  • GraphQL Development

先决条件

  • Rover CLI installed
  • Claude Code and similar AI coding assistants

安装

请先添加 Marketplace

/plugin marketplace add apollographql/skills
/plugin install skills@apollo-marketplace

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交2 days ago
星标62
许可证MIT
状态
查看源代码

类似扩展

Apollo Federation

100

Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated supergraph, (2) defining or modifying entities with @key, (3) sharing types/fields across subgraphs with @shareable, (4) working with federation directives (@external, @requires, @provides, @override, @inaccessible), (5) troubleshooting composition errors, (6) any task involving federation schema design patterns.

技能
apollographql

Apollo Router

100

Version-aware guide for configuring and running Apollo Router for federated GraphQL supergraphs. Generates correct YAML for both Router v1.x and v2.x. Use this skill when: (1) setting up Apollo Router to run a supergraph, (2) configuring routing, headers, or CORS, (3) implementing custom plugins (Rhai scripts or coprocessors), (4) configuring telemetry (tracing, metrics, logging), (5) troubleshooting Router performance or connectivity issues.

技能
apollographql

Rover

98

Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2) composing supergraph schemas locally or via GraphOS, (3) running local supergraph development with rover dev, (4) validating schemas with check and lint commands, (5) configuring Rover authentication and environment.

技能
apollographql

Apollo Server

98

Guide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining GraphQL schemas, (3) implementing authentication or authorization, (4) creating plugins or custom data sources, (5) troubleshooting Apollo Server errors or performance issues.

技能
apollographql

Apollo Kotlin

98

Guide for building applications with Apollo Kotlin, the GraphQL client library for Android and Kotlin. Use this skill when: (1) setting up Apollo Kotlin in a Gradle project for Android, Kotlin/JVM, or KMP, (2) configuring schema download and codegen for GraphQL services, (3) configuring an `ApolloClient` with auth, interceptors, and caching, (4) writing queries, mutations, or subscriptions,

技能
apollographql

API Design Patterns

100

Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices

技能
bobmatnyc