Graphql implementation

From aj-geddes/useful-ai-prompts · View interactive version

Graphql implementation is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Design and implement GraphQL APIs with schema design, resolvers, queries, mutations, subscriptions, and best practices. Use when building GraphQL servers, designing schemas, or migrating from REST to GraphQL.

How to use this skill

Skill file

GraphQL Implementation

Table of Contents

Overview

Implement GraphQL APIs with proper schema design, resolver patterns, error handling, and performance optimization for flexible client-server communication.

When to Use

Quick Start

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)

Reference Guides

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 |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.