aj-geddes avatar

Graphql Implementation

This is a practical reference for building GraphQL APIs, covering schema design, resolvers, mutations, subscriptions, and performance optimization. You'd reach for this when designing a new GraphQL API from scratch, migrating from REST, or troubleshooting common issues like N+1 queries. The guides include implementations for both Node.js with Apollo Server and Python with Graphene, plus concrete examples of query patterns and error handling. The best practices section is sensible, emphasizing things like designing schemas around client needs and proper input validation. It's focused on getting you building quickly while avoiding the usual pitfalls like over-nesting or exposing sensitive data without authorization checks.

skills.sh installs
424
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill graphql-implementation --agent claude-code

Installs into .claude/skills of the current project.

Files

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

  • Designing new GraphQL APIs
  • Creating GraphQL schemas and types
  • Implementing resolvers and mutations
  • Adding subscriptions for real-time data
  • Migrating from REST to GraphQL
  • Optimizing GraphQL performance

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:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Design & UI/UX
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1davila7 avatarbackend-to-frontend-handoff-docsdavila7/claude-code-templatesCreate API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'c413skills.sh installs
2davila7 avatarclinicaltrials-databasedavila7/claude-code-templatesQuery ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical r409skills.sh installs
3umbraco avatarumbraco-auth-providerumbraco/umbraco-cms-backoffice-skillsImplement authentication providers for Umbraco backoffice using official docs399skills.sh installs
4jezweb avatarcloudflare-worker-basejezweb/claude-skillsSet up Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Prevents 10 errors including export syntax, routing conflicts, Vite 8 nodejs_compat394skills.sh installs
5secondsky avatargraphql-implementationsecondsky/claude-skillsBuilds GraphQL APIs with schema design, resolvers, error handling, and performance optimization using Apollo or Graphene. Use when creating flexible query APIs,393skills.sh installs
6auth0 avatarauth0-springboot-apiauth0/agent-skillsUse when protecting Spring Boot API endpoints with JWT Bearer token validation, scope-based authorization, or DPoP binding. Integrates com.auth0:auth0-springboo387skills.sh installs