secondsky avatar

Graphql Implementation

Covers the essentials for building GraphQL APIs with Apollo Server or Python's Graphene, including schema design, resolvers, and DataLoader for handling N+1 query problems. You get practical examples for queries, mutations, error handling with proper codes, and input validation. The schema examples show a typical user/post relationship structure. Use this when you're migrating from REST and want clients to request exactly what they need, or when you need real-time subscriptions. The best practices section is solid on query complexity limits and not exposing database internals, though you'll still need to configure rate limiting and authentication separately.

skills.sh installs
393
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill graphql-implementation --agent claude-code

Installs into .claude/skills of the current project.

Files

GraphQL Implementation

Build GraphQL APIs with proper schema design, resolvers, and performance optimization.

Schema Definition

type User {
  id: ID!
  name: String!
  email: String!
  posts(limit: Int = 10): [Post!]!
}

type Post {
  id: ID!
  title: String!
  content: String!
  author: User!
  createdAt: DateTime!
}

type Query {
  user(id: ID!): User
  users(limit: Int, offset: Int): [User!]!
  post(id: ID!): Post
}

type Mutation {
  createUser(input: CreateUserInput!): User!
  createPost(input: CreatePostInput!): Post!
}

input CreateUserInput {
  name: String!
  email: String!
}

Apollo Server Setup

const { ApolloServer } = require('@apollo/server');
const { startStandaloneServer } = require('@apollo/server/standalone');

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Backend & APIs, Debugging, Design & UI/UX
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1auth0 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
2codex-data avatarcodex-gatewaycodex-data/skillsUse when the user wants to query the Codex Supergraph and the server returns a 402 challenge. Pays per query via the MPP 402 challenge flow. Only supports queri371skills.sh installs
3bobmatnyc avatarbetter-auth-corebobmatnyc/claude-mpm-skillsBetter Auth core setup for TypeScript apps. Use when configuring the Better Auth instance, wiring server handlers and client instances, working with sessions, o368skills.sh installs
4bobmatnyc avatarbetter-auth-pluginsbobmatnyc/claude-mpm-skillsBetter Auth plugin system for TypeScript. Use when adding advanced auth features (2FA, magic link, passkey, username, JWT, organizations) via server and client 362skills.sh installs
5davila7 avatarbiorxiv-databasedavila7/claude-code-templatesEfficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or cate358skills.sh installs
6secondsky avatarbun-drizzle-integrationsecondsky/claude-skillsUse when integrating Drizzle ORM with Bun's SQLite driver for type-safe schema definitions and migrations.353skills.sh installs