graphql-schema
✓遵循行业最佳实践设计 GraphQL 模式的指南。在以下情况下使用此技能:(1) 设计新的 GraphQL 模式或 API,(2) 检查现有模式以进行改进,(3) 决定类型结构或可空性,(4) 实现分页或错误模式,(5) 确保模式设计的安全性。
SKILL.md
This guide covers best practices for designing GraphQL schemas that are intuitive, performant, and maintainable. Schema design is primarily a server-side concern that directly impacts API usability.
| String | Nullable - may be null | | String! | Non-null - always has value | | [String] | Nullable list, nullable items | | [String!] | Nullable list, non-null items | | [String]! | Non-null list, nullable items | | [String!]! | Non-null list, non-null items |
Best Practice: Use [Type!]! for lists - empty list over null, no null items.
遵循行业最佳实践设计 GraphQL 模式的指南。在以下情况下使用此技能:(1) 设计新的 GraphQL 模式或 API,(2) 检查现有模式以进行改进,(3) 决定类型结构或可空性,(4) 实现分页或错误模式,(5) 确保模式设计的安全性。 来源:apollographql/skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/apollographql/skills --skill graphql-schema- 分类
- !安全工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 graphql-schema?
遵循行业最佳实践设计 GraphQL 模式的指南。在以下情况下使用此技能:(1) 设计新的 GraphQL 模式或 API,(2) 检查现有模式以进行改进,(3) 决定类型结构或可空性,(4) 实现分页或错误模式,(5) 确保模式设计的安全性。 来源:apollographql/skills。
如何安装 graphql-schema?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/apollographql/skills --skill graphql-schema 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/apollographql/skills
详情
- 分类
- !安全工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01