graphql

Solid

GraphQL schema design, resolvers, directives, subscriptions, and best practices for API development.

API & Backend 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# GraphQL Skill Expert assistance for designing and implementing GraphQL APIs. ## Capabilities - Design GraphQL schemas with SDL - Implement resolvers and data loaders - Create custom directives - Set up subscriptions for real-time - Handle authentication and authorization - Optimize query performance ## Usage Invoke this skill when you need to: - Design GraphQL API schemas - Implement resolvers - Add real-time subscriptions - Create custom directives - Optimize N+1 queries ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | typeName | string | Yes | GraphQL type name | | operations | array | No | queries, mutations, subscriptions | | directives | array | No | Custom directives | ## Schema Design Patterns ### Type Definitions ```graphql # schema.graphql # Scalars scalar DateTime scalar JSON # Enums enum Role { USER ADMIN } enum SortOrder { ASC DESC } # Types type User { id: ID! name: String! email: String! role: Role! posts: [Post!]! createdAt: DateTime! updatedAt: DateTime! } type Post { id: ID! title: String! content: String! published: Boolean! author: User! comments: [Comment!]! createdAt: DateTime! } type Comment { id: ID! content: String! author: User! post: Post! createdAt: DateTime! } # Pagination type PageInfo { hasNextPage: Boolean! hasPreviousPage: Boolean! startCursor: String endCursor: String } type UserEdge { node: User! cursor: String!...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills