graphql-implementation by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill graphql-implementation实现 GraphQL API,包含适当的模式设计、解析器模式、错误处理和性能优化,以实现灵活的客户端-服务器通信。
最小工作示例:
type User {
id: ID!
email: String!
firstName: String!
lastName: String!
role: UserRole!
posts: [Post!]!
createdAt: DateTime!
updatedAt: DateTime!
}
enum UserRole {
ADMIN
USER
MODERATOR
}
type Post {
id: ID!
title: String!
content: String!
author: User!
comments: [Comment!]!
publishedAt: DateTime
createdAt: DateTime!
// ... (完整实现请参阅参考指南)
references/ 目录下的详细实现:
| 指南 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 内容 |
|---|
| GraphQL 模式设计 | GraphQL 模式设计 |
| Node.js Apollo 服务器实现 | Node.js Apollo 服务器实现 |
| Python GraphQL 实现 (Graphene) | Python GraphQL 实现 (Graphene) |
| 查询示例 | 查询示例 |
| 错误处理 | 错误处理 |
每周安装数
103
代码仓库
GitHub 星标数
121
首次出现
2026年1月21日
安全审计
安装于
opencode86
gemini-cli84
codex81
claude-code80
cursor78
github-copilot71
Implement GraphQL APIs with proper schema design, resolver patterns, error handling, and performance optimization for flexible client-server communication.
Minimal working example:
type User {
id: ID!
email: String!
firstName: String!
lastName: String!
role: UserRole!
posts: [Post!]!
createdAt: DateTime!
updatedAt: DateTime!
}
enum UserRole {
ADMIN
USER
MODERATOR
}
type Post {
id: ID!
title: String!
content: String!
author: User!
comments: [Comment!]!
publishedAt: DateTime
createdAt: DateTime!
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| GraphQL Schema Design | GraphQL Schema Design |
| Node.js Apollo Server Implementation | Node.js Apollo Server Implementation |
| Python GraphQL Implementation (Graphene) | Python GraphQL Implementation (Graphene) |
| Query Examples | Query Examples |
| Error Handling | Error Handling |
Weekly Installs
103
Repository
GitHub Stars
121
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode86
gemini-cli84
codex81
claude-code80
cursor78
github-copilot71
Lark CLI Wiki API 使用指南:获取知识空间节点信息与权限管理
31,500 周安装