GraphQL Schema Stitcher by agentskillexchange/skills
npx skills add https://github.com/agentskillexchange/skills --skill 'GraphQL Schema Stitcher'使用 Apollo Federation v2 和 graphql-tools stitchSchemas 将多个 GraphQL 模式合并为一个统一的联邦网关。使用 rover graph check 验证组合后的模式。
GraphQL Schema Stitcher 将多个 GraphQL 子图模式组合成一个统一的联邦 API 网关。它使用 @apollo/composition 实现 Apollo Federation v2 组合,以合并子图 SDL 定义,并正确处理实体解析、@key 指令和共享类型处理。该工具还通过 graphql-tools stitchSchemas 支持非联邦架构的旧版模式缝合,自动生成类型合并配置并委派解析器。在组合之前,它使用 graphql-js validateSchema 验证各个子图模式,并使用 rover graph check 针对 Apollo Studio 检查联邦合规性。缝合器检测子图之间冲突的类型定义、缺失的实体解析器和循环引用问题。它生成一个组合报告,显示类型所有权、共享字段和潜在的破坏性更改。对于开发工作流,它支持从本地 SDL 文件或内省端点热重载子图模式,并在使用 chokidar 文件监视器检测到更改时自动重新组合。
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a claude-code
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a cursor
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a codex
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
clawhub install graphql-schema-stitcher
每周安装次数
–
代码仓库
GitHub 星标数
1
首次出现时间
–
安全审计
Merges multiple GraphQL schemas into a unified federated gateway using Apollo Federation v2 and graphql-tools stitchSchemas. Validates composed schemas with rover graph check.
The GraphQL Schema Stitcher combines multiple GraphQL subgraph schemas into a unified federated API gateway. It implements Apollo Federation v2 composition using @apollo/composition to merge subgraph SDL definitions with proper entity resolution, @key directives, and shared type handling. The tool also supports legacy schema stitching via graphql-tools stitchSchemas for non-federated architectures, automatically generating type merging configuration and delegating resolvers. Before composition, it validates individual subgraph schemas using graphql-js validateSchema and checks federation compliance with rover graph check against Apollo Studio. The stitcher detects conflicting type definitions, missing entity resolvers, and circular reference issues across subgraphs. It generates a composition report showing type ownership, shared fields, and potential breaking changes. For development workflows, it supports hot-reloading of subgraph schemas from local SDL files or introspection endpoints, with automatic recomposition when changes are detected using chokidar file watchers.
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a claude-code
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a cursor
npx skills add agentskillexchange/skills --skill graphql-schema-stitcher -a codex
clawhub install graphql-schema-stitcher
Weekly Installs
–
Repository
GitHub Stars
1
First Seen
–
Security Audits