{"id":"010ce7a7-6b82-4134-abf3-0604fe4832ae","shortId":"ppx2sF","kind":"skill","title":"graphql","tagline":"GraphQL gives clients exactly the data they need - no more, no","description":"# GraphQL\n\nGraphQL gives clients exactly the data they need - no more, no less. One\nendpoint, typed schema, introspection. But the flexibility that makes it\npowerful also makes it dangerous. Without proper controls, clients can\ncraft queries that bring down your server.\n\nThis skill covers schema design, resolvers, DataLoader for N+1 prevention,\nfederation for microservices, and client integration with Apollo/urql.\nKey insight: GraphQL is a contract. The schema is the API documentation.\nDesign it carefully.\n\n2025 lesson: GraphQL isn't always the answer. For simple CRUD, REST is\nsimpler. For high-performance public APIs, REST with caching wins. Use\nGraphQL when you have complex data relationships and diverse client needs.\n\n## Principles\n\n- Schema-first design - the schema is the contract\n- Prevent N+1 queries with DataLoader\n- Limit query depth and complexity\n- Use fragments for reusable selections\n- Mutations should be specific, not generic update operations\n- Errors are data - use union types for expected failures\n- Nullability is meaningful - design it intentionally\n\n## Capabilities\n\n- graphql-schema-design\n- graphql-resolvers\n- graphql-federation\n- graphql-subscriptions\n- graphql-dataloader\n- graphql-codegen\n- apollo-server\n- apollo-client\n- urql\n\n## Scope\n\n- database-queries -> postgres-wizard\n- authentication -> authentication-oauth\n- rest-api-design -> backend\n- websocket-infrastructure -> backend\n\n## Tooling\n\n### Server\n\n- @apollo/server - When: Apollo Server v4 Note: Most popular GraphQL server\n- graphql-yoga - When: Lightweight alternative Note: Good for serverless\n- mercurius - When: Fastify integration Note: Fast, uses JIT\n\n### Client\n\n- @apollo/client - When: Full-featured client Note: Caching, state management\n- urql - When: Lightweight alternative Note: Smaller, simpler\n- graphql-request - When: Simple requests Note: Minimal, no caching\n\n### Tools\n\n- graphql-codegen - When: Type generation Note: Essential for TypeScript\n- dataloader - When: N+1 prevention Note: Batches and caches\n\n## Patterns\n\n### Schema Design\n\nType-safe schema with proper nullability\n\n**When to use**: Designing any GraphQL API\n\n# SCHEMA DESIGN:\n\n\"\"\"\nThe schema is your API contract. Design nullability\nintentionally - non-null fields must always resolve.\n\"\"\"\n\ntype Query {\n  # Non-null - will always return user or throw\n  user(id: ID!): User!\n\n  # Nullable - returns null if not found\n  userByEmail(email: String!): User\n\n  # Non-null list with non-null items\n  users(limit: Int = 10, offset: Int = 0): [User!]!\n\n  # Search with pagination\n  searchUsers(\n    query: String!\n    first: Int\n    after: String\n  ): UserConnection!\n}\n\ntype Mutation {\n  # Input types for complex mutations\n  createUser(input: CreateUserInput!): CreateUserPayload!\n  updateUser(id: ID!, input: UpdateUserInput!): UpdateUserPayload!\n  deleteUser(id: ID!): DeleteUserPayload!\n}\n\ntype Subscription {\n  userCreated: User!\n  messageReceived(roomId: ID!): Message!\n}\n\n# Input types\ninput CreateUserInput {\n  email: String!\n  name: String!\n  role: Role = USER\n}\n\ninput UpdateUserInput {\n  email: String\n  name: String\n  role: Role\n}\n\n# Payload types (for errors as data)\ntype CreateUserPayload {\n  user: User\n  errors: [Error!]!\n}\n\nunion UpdateUserPayload = UpdateUserSuccess | NotFoundError | ValidationError\n\ntype UpdateUserSuccess {\n  user: User!\n}\n\n# Enums\nenum Role {\n  USER\n  ADMIN\n  MODERATOR\n}\n\n# Types with relationships\ntype User {\n  id: ID!\n  email: String!\n  name: String!\n  role: Role!\n  posts(limit: Int = 10): [Post!]!\n  createdAt: DateTime!\n}\n\ntype Post {\n  id: ID!\n  title: String!\n  content: String!\n  author: User!\n  comments: [Comment!]!\n  published: Boolean!\n}\n\n# Pagination (Relay-style)\ntype UserConnection {\n  edges: [UserEdge!]!\n  pageInfo: PageInfo!\n  totalCount: Int!\n}\n\ntype UserEdge {\n  node: User!\n  cursor: String!\n}\n\ntype PageInfo {\n  hasNextPage: Boolean!\n  hasPreviousPage: Boolean!\n  startCursor: String\n  endCursor: String\n}\n\n### DataLoader for N+1 Prevention\n\nBatch and cache database queries\n\n**When to use**: Resolving relationships\n\n# DATALOADER:\n\n\"\"\"\nWithout DataLoader, fetching 10 posts with authors\nmakes 11 queries (1 for posts + 10 for each author).\nDataLoader batches into 2 queries.\n\"\"\"\n\nimport DataLoader from 'dataloader';\n\n// Create loaders per request\nfunction createLoaders(db) {\n  return {\n    userLoader: new DataLoader(async (ids) => {\n      // Single query for all users\n      const users = await db.user.findMany({\n        where: { id: { in: ids } }\n      });\n\n      // Return in same order as ids\n      const userMap = new Map(users.map(u => [u.id, u]));\n      return ids.map(id => userMap.get(id) || null);\n    }),\n\n    postsByAuthorLoader: new DataLoader(async (authorIds) => {\n      const posts = await db.post.findMany({\n        where: { authorId: { in: authorIds } }\n      });\n\n      // Group by author\n      const postsByAuthor = new Map();\n      posts.forEach(post => {\n        const existing = postsByAuthor.get(post.authorId) || [];\n        postsByAuthor.set(post.authorId, [...existing, post]);\n      });\n\n      return authorIds.map(id => postsByAuthor.get(id) || []);\n    })\n  };\n}\n\n// Attach to context\nconst server = new ApolloServer({\n  typeDefs,\n  resolvers,\n});\n\napp.use('/graphql', expressMiddleware(server, {\n  context: async ({ req }) => ({\n    db,\n    loaders: createLoaders(db),\n    user: req.user\n  })\n}));\n\n// Use in resolvers\nconst resolvers = {\n  Post: {\n    author: (post, _, { loaders }) => {\n      return loaders.userLoader.load(post.authorId);\n    }\n  },\n  User: {\n    posts: (user, _, { loaders }) => {\n      return loaders.postsByAuthorLoader.load(user.id);\n    }\n  }\n};\n\n### Apollo Client Caching\n\nNormalized cache with type policies\n\n**When to use**: Client-side data management\n\n# APOLLO CLIENT CACHING:\n\n\"\"\"\nApollo Client normalizes responses into a flat cache.\nConfigure type policies for custom cache behavior.\n\"\"\"\n\nimport { ApolloClient, InMemoryCache } from '@apollo/client';\n\nconst cache = new InMemoryCache({\n  typePolicies: {\n    Query: {\n      fields: {\n        // Paginated field\n        users: {\n          keyArgs: ['query'],  // Cache separately per query\n          merge(existing = { edges: [] }, incoming, { args }) {\n            // Append for infinite scroll\n            if (args?.after) {\n              return {\n                ...incoming,\n                edges: [...existing.edges, ...incoming.edges]\n              };\n            }\n            return incoming;\n          }\n        }\n      }\n    },\n    User: {\n      keyFields: ['id'],  // How to identify users\n      fields: {\n        fullName: {\n          read(_, { readField }) {\n            // Computed field\n            return `${readField('firstName')} ${readField('lastName')}`;\n          }\n        }\n      }\n    }\n  }\n});\n\nconst client = new ApolloClient({\n  uri: '/graphql',\n  cache,\n  defaultOptions: {\n    watchQuery: {\n      fetchPolicy: 'cache-and-network'\n    }\n  }\n});\n\n// Queries with hooks\nimport { useQuery, useMutation } from '@apollo/client';\n\nconst GET_USER = gql`\n  query GetUser($id: ID!) {\n    user(id: $id) {\n      id\n      name\n      email\n    }\n  }\n`;\n\nfunction UserProfile({ userId }) {\n  const { data, loading, error } = useQuery(GET_USER, {\n    variables: { id: userId }\n  });\n\n  if (loading) return <Spinner />;\n  if (error) return <Error message={error.message} />;\n\n  return <div>{data.user.name}</div>;\n}\n\n// Mutations with cache updates\nconst CREATE_USER = gql`\n  mutation CreateUser($input: CreateUserInput!) {\n    createUser(input: $input) {\n      user {\n        id\n        name\n        email\n      }\n      errors {\n        field\n        message\n      }\n    }\n  }\n`;\n\nfunction CreateUserForm() {\n  const [createUser, { loading }] = useMutation(CREATE_USER, {\n    update(cache, { data: { createUser } }) {\n      // Update cache after mutation\n      if (createUser.user) {\n        cache.modify({\n          fields: {\n            users(existing = []) {\n              const newRef = cache.writeFragment({\n                data: createUser.user,\n                fragment: gql`\n                  fragment NewUser on User {\n                    id\n                    name\n                    email\n                  }\n                `\n              });\n              return [...existing, newRef];\n            }\n          }\n        });\n      }\n    }\n  });\n}\n\n### Code Generation\n\nType-safe operations from schema\n\n**When to use**: TypeScript projects\n\n# GRAPHQL CODEGEN:\n\n\"\"\"\nGenerate TypeScript types from your schema and operations.\nNo more manually typing query responses.\n\"\"\"\n\n# Install\nnpm install -D @graphql-codegen/cli\nnpm install -D @graphql-codegen/typescript\nnpm install -D @graphql-codegen/typescript-operations\nnpm install -D @graphql-codegen/typescript-react-apollo\n\n# codegen.ts\nimport type { CodegenConfig } from '@graphql-codegen/cli';\n\nconst config: CodegenConfig = {\n  schema: 'http://localhost:4000/graphql',\n  documents: ['src/**/*.graphql', 'src/**/*.tsx'],\n  generates: {\n    './src/generated/graphql.ts': {\n      plugins: [\n        'typescript',\n        'typescript-operations',\n        'typescript-react-apollo'\n      ],\n      config: {\n        withHooks: true,\n        withComponent: false\n      }\n    }\n  }\n};\n\nexport default config;\n\n# Run generation\nnpx graphql-codegen\n\n# Usage - fully typed!\nimport { useGetUserQuery, useCreateUserMutation } from './generated/graphql';\n\nfunction UserProfile({ userId }: { userId: string }) {\n  const { data, loading } = useGetUserQuery({\n    variables: { id: userId }  // Type-checked!\n  });\n\n  // data.user is fully typed\n  return <div>{data?.user?.name}</div>;\n}\n\n### Error Handling with Unions\n\nExpected errors as data, not exceptions\n\n**When to use**: Operations that can fail in expected ways\n\n# ERRORS AS DATA:\n\n\"\"\"\nUse union types for expected failure cases.\nGraphQL errors are for unexpected failures.\n\"\"\"\n\n# Schema\ntype Mutation {\n  login(email: String!, password: String!): LoginResult!\n}\n\nunion LoginResult = LoginSuccess | InvalidCredentials | AccountLocked\n\ntype LoginSuccess {\n  user: User!\n  token: String!\n}\n\ntype InvalidCredentials {\n  message: String!\n}\n\ntype AccountLocked {\n  message: String!\n  unlockAt: DateTime\n}\n\n# Resolver\nconst resolvers = {\n  Mutation: {\n    login: async (_, { email, password }, { db }) => {\n      const user = await db.user.findByEmail(email);\n\n      if (!user || !await verifyPassword(password, user.hash)) {\n        return {\n          __typename: 'InvalidCredentials',\n          message: 'Invalid email or password'\n        };\n      }\n\n      if (user.lockedUntil && user.lockedUntil > new Date()) {\n        return {\n          __typename: 'AccountLocked',\n          message: 'Account temporarily locked',\n          unlockAt: user.lockedUntil\n        };\n      }\n\n      return {\n        __typename: 'LoginSuccess',\n        user,\n        token: generateToken(user)\n      };\n    }\n  },\n\n  LoginResult: {\n    __resolveType(obj) {\n      return obj.__typename;\n    }\n  }\n};\n\n# Client query\nconst LOGIN = gql`\n  mutation Login($email: String!, $password: String!) {\n    login(email: $email, password: $password) {\n      ... on LoginSuccess {\n        user { id name }\n        token\n      }\n      ... on InvalidCredentials {\n        message\n      }\n      ... on AccountLocked {\n        message\n        unlockAt\n      }\n    }\n  }\n`;\n\n// Handle all cases\nconst result = data.login;\nswitch (result.__typename) {\n  case 'LoginSuccess':\n    setToken(result.token);\n    redirect('/dashboard');\n    break;\n  case 'InvalidCredentials':\n    setError(result.message);\n    break;\n  case 'AccountLocked':\n    setError(`${result.message}. Try again at ${result.unlockAt}`);\n    break;\n}\n\n## Sharp Edges\n\n### Each resolver makes separate database queries\n\nSeverity: CRITICAL\n\nSituation: You write resolvers that fetch data individually. A query for\n10 posts with authors makes 11 database queries. For 100 posts,\nthat's 101 queries. Response time becomes seconds.\n\nSymptoms:\n- Slow API responses\n- Many similar database queries in logs\n- Performance degrades with list size\n\nWhy this breaks:\nGraphQL resolvers run independently. Without batching, the author\nresolver runs separately for each post. The database gets hammered\nwith repeated similar queries.\n\nRecommended fix:\n\n# USE DATALOADER\n\nimport DataLoader from 'dataloader';\n\n// Create loader per request\nconst userLoader = new DataLoader(async (ids) => {\n  const users = await db.user.findMany({\n    where: { id: { in: ids } }\n  });\n  // IMPORTANT: Return in same order as input ids\n  const userMap = new Map(users.map(u => [u.id, u]));\n  return ids.map(id => userMap.get(id));\n});\n\n// Use in resolver\nconst resolvers = {\n  Post: {\n    author: (post, _, { loaders }) =>\n      loaders.userLoader.load(post.authorId)\n  }\n};\n\n# Key points:\n# 1. Create new loaders per request (for caching scope)\n# 2. Return results in same order as input IDs\n# 3. Handle missing items (return null, not skip)\n\n### Deeply nested queries can DoS your server\n\nSeverity: CRITICAL\n\nSituation: Your schema has circular relationships (user.posts.author.posts...).\nA client sends a query 20 levels deep. Your server tries to resolve\nit and either times out or crashes.\n\nSymptoms:\n- Server timeouts on certain queries\n- Memory exhaustion\n- Slow response for nested queries\n\nWhy this breaks:\nGraphQL allows clients to request any valid query shape. Without\nlimits, a malicious or buggy client can craft queries that require\nexponential work. Even legitimate queries can accidentally be too deep.\n\nRecommended fix:\n\n# LIMIT QUERY DEPTH AND COMPLEXITY\n\nimport depthLimit from 'graphql-depth-limit';\nimport { createComplexityLimitRule } from 'graphql-validation-complexity';\n\nconst server = new ApolloServer({\n  typeDefs,\n  resolvers,\n  validationRules: [\n    // Limit nesting depth\n    depthLimit(10),\n\n    // Limit query complexity\n    createComplexityLimitRule(1000, {\n      scalarCost: 1,\n      objectCost: 2,\n      listFactor: 10\n    })\n  ]\n});\n\n# Also consider:\n# - Query timeout limits\n# - Rate limiting per client\n# - Persisted queries (only allow pre-registered queries)\n\n### Introspection enabled in production exposes your schema\n\nSeverity: HIGH\n\nSituation: You deploy to production with introspection enabled. Anyone can\nquery your schema, discover all types, mutations, and field names.\nAttackers know exactly what to target.\n\nSymptoms:\n- Schema visible via introspection query\n- GraphQL Playground accessible in production\n- Full type information exposed\n\nWhy this breaks:\nIntrospection is essential for development and tooling, but in\nproduction it's a roadmap for attackers. They can find admin\nmutations, internal fields, and deprecated but still working APIs.\n\nRecommended fix:\n\n# DISABLE INTROSPECTION IN PRODUCTION\n\nconst server = new ApolloServer({\n  typeDefs,\n  resolvers,\n  introspection: process.env.NODE_ENV !== 'production',\n  plugins: [\n    process.env.NODE_ENV === 'production'\n      ? ApolloServerPluginLandingPageDisabled()\n      : ApolloServerPluginLandingPageLocalDefault()\n  ]\n});\n\n# Better: Use persisted queries\n# Only allow pre-registered queries in production\nconst server = new ApolloServer({\n  typeDefs,\n  resolvers,\n  persistedQueries: {\n    cache: new InMemoryLRUCache()\n  }\n});\n\n### Authorization only in schema directives, not resolvers\n\nSeverity: HIGH\n\nSituation: You rely entirely on @auth directives for authorization. Someone\nfinds a way around the directive, or complex business rules don't\nfit in a simple directive. Authorization fails.\n\nSymptoms:\n- Unauthorized access to data\n- Business rules not enforced\n- Directive-only security bypassed\n\nWhy this breaks:\nDirectives are good for simple checks but can't handle complex\nbusiness logic. \"User can edit their own posts, or any post in\ngroups they moderate\" doesn't fit in a directive.\n\nRecommended fix:\n\n# AUTHORIZE IN RESOLVERS\n\n// Simple check in resolver\nMutation: {\n  deletePost: async (_, { id }, { user, db }) => {\n    if (!user) {\n      throw new AuthenticationError('Must be logged in');\n    }\n\n    const post = await db.post.findUnique({ where: { id } });\n\n    if (!post) {\n      throw new NotFoundError('Post not found');\n    }\n\n    // Business logic authorization\n    const canDelete =\n      post.authorId === user.id ||\n      user.role === 'ADMIN' ||\n      await userModeratesGroup(user.id, post.groupId);\n\n    if (!canDelete) {\n      throw new ForbiddenError('Cannot delete this post');\n    }\n\n    return db.post.delete({ where: { id } });\n  }\n}\n\n// Helper for field-level authorization\nUser: {\n  email: (user, _, { currentUser }) => {\n    // Only show email to self or admin\n    if (currentUser?.id === user.id || currentUser?.role === 'ADMIN') {\n      return user.email;\n    }\n    return null;\n  }\n}\n\n### Authorization on queries but not on fields\n\nSeverity: HIGH\n\nSituation: You check if a user can access a resource, but not individual\nfields. User A can see User B's public profile, and accidentally\nalso sees their private email and phone number.\n\nSymptoms:\n- Sensitive data exposed\n- Privacy violations\n- Field data visible to wrong users\n\nWhy this breaks:\nField resolvers run after the parent is returned. If the parent\nquery returns a user, all fields are resolved - including sensitive\nones. Each sensitive field needs its own auth check.\n\nRecommended fix:\n\n# FIELD-LEVEL AUTHORIZATION\n\nconst resolvers = {\n  User: {\n    // Public fields - no check needed\n    id: (user) => user.id,\n    name: (user) => user.name,\n\n    // Private fields - check access\n    email: (user, _, { currentUser }) => {\n      if (!currentUser) return null;\n      if (currentUser.id === user.id) return user.email;\n      if (currentUser.role === 'ADMIN') return user.email;\n      return null;\n    },\n\n    phoneNumber: (user, _, { currentUser }) => {\n      if (currentUser?.id !== user.id) return null;\n      return user.phoneNumber;\n    },\n\n    // Or throw instead of returning null\n    privateData: (user, _, { currentUser }) => {\n      if (currentUser?.id !== user.id) {\n        throw new ForbiddenError('Not authorized');\n      }\n      return user.privateData;\n    }\n  }\n};\n\n### Non-null field failure nullifies entire parent\n\nSeverity: MEDIUM\n\nSituation: You make fields non-null for convenience. A resolver throws or\nreturns null. The error propagates up, nullifying parent objects,\nuntil the whole query response is null or errors out.\n\nSymptoms:\n- Queries return null unexpectedly\n- One error affects unrelated fields\n- Partial data can't be returned\n\nWhy this breaks:\nGraphQL's null propagation means if a non-null field can't resolve,\nits parent becomes null. If that parent is also non-null, it\npropagates further. One failing field can break an entire response.\n\nRecommended fix:\n\n# DESIGN NULLABILITY INTENTIONALLY\n\n# WRONG: Everything non-null\ntype User {\n  id: ID!\n  name: String!\n  email: String!\n  avatar: String!      # What if no avatar?\n  lastLogin: DateTime! # What if never logged in?\n}\n\n# RIGHT: Nullable where appropriate\ntype User {\n  id: ID!              # Always exists\n  name: String!        # Required field\n  email: String!       # Required field\n  avatar: String       # Optional - may not exist\n  lastLogin: DateTime  # Nullable - may be null\n}\n\n# For lists:\n# [User!]! - Non-null list of non-null users (recommended)\n# [User!]  - Nullable list of non-null users\n# [User]!  - Non-null list of nullable users (rarely useful)\n# [User]   - Nullable list of nullable users (avoid)\n\n# Rule of thumb:\n# - Non-null if always present and failure should fail query\n# - Nullable if optional or failure shouldn't break response\n\n### Expensive queries treated same as cheap ones\n\nSeverity: MEDIUM\n\nSituation: Every query is processed the same. A simple user(id) query uses\nthe same resources as users(first: 1000) { posts { comments } }.\nExpensive queries starve out cheap ones.\n\nSymptoms:\n- Expensive queries slow everything\n- No way to prioritize queries\n- Rate limiting is ineffective\n\nWhy this breaks:\nNot all GraphQL operations are equal. Fetching 1000 users with\nnested data is orders of magnitude more expensive than fetching\none user. Without cost analysis, you can't rate limit properly.\n\nRecommended fix:\n\n# QUERY COST ANALYSIS\n\nimport { createComplexityLimitRule } from 'graphql-validation-complexity';\n\n// Define complexity per field\nconst complexityRules = createComplexityLimitRule(1000, {\n  scalarCost: 1,\n  objectCost: 10,\n  listFactor: 10,\n  // Custom field costs\n  fieldCost: {\n    'Query.searchUsers': 100,\n    'Query.analytics': 500,\n    'User.posts': ({ args }) => args.limit || 10\n  }\n});\n\n// For rate limiting by cost\nconst costPlugin = {\n  requestDidStart() {\n    return {\n      didResolveOperation({ request, document }) {\n        const cost = calculateQueryCost(document);\n        if (cost > 1000) {\n          throw new Error(`Query too expensive: ${cost}`);\n        }\n        // Track cost for rate limiting\n        rateLimiter.consume(request.userId, cost);\n      }\n    };\n  }\n};\n\n### Subscriptions not properly cleaned up\n\nSeverity: MEDIUM\n\nSituation: Clients subscribe but don't unsubscribe cleanly. Network issues\nleave orphaned subscriptions. Server memory grows as dead\nsubscriptions accumulate.\n\nSymptoms:\n- Memory usage grows over time\n- Dead connections accumulate\n- Server slows down\n\nWhy this breaks:\nEach subscription holds server resources. Without proper cleanup\non disconnect, resources accumulate. Long-running servers\neventually run out of memory.\n\nRecommended fix:\n\n# PROPER SUBSCRIPTION CLEANUP\n\nimport { PubSub, withFilter } from 'graphql-subscriptions';\nimport { WebSocketServer } from 'ws';\nimport { useServer } from 'graphql-ws/lib/use/ws';\n\nconst pubsub = new PubSub();\n\n// Track active subscriptions\nconst activeSubscriptions = new Map();\n\nconst wsServer = new WebSocketServer({\n  server: httpServer,\n  path: '/graphql'\n});\n\nuseServer({\n  schema,\n  context: (ctx) => ({\n    pubsub,\n    userId: ctx.connectionParams?.userId\n  }),\n  onConnect: (ctx) => {\n    console.log('Client connected');\n  },\n  onDisconnect: (ctx) => {\n    // Clean up resources for this connection\n    const userId = ctx.connectionParams?.userId;\n    activeSubscriptions.delete(userId);\n  }\n}, wsServer);\n\n// Subscription resolver with cleanup\nSubscription: {\n  messageReceived: {\n    subscribe: withFilter(\n      (_, { roomId }, { pubsub, userId }) => {\n        // Track subscription\n        activeSubscriptions.set(userId, roomId);\n        return pubsub.asyncIterator(`ROOM_${roomId}`);\n      },\n      (payload, { roomId }) => {\n        return payload.roomId === roomId;\n      }\n    )\n  }\n}\n\n## Validation Checks\n\n### Introspection enabled in production\n\nSeverity: WARNING\n\nMessage: Introspection should be disabled in production\n\nFix action: Set introspection: process.env.NODE_ENV !== 'production'\n\n### Direct database query in resolver\n\nSeverity: WARNING\n\nMessage: Consider using DataLoader to batch and cache queries\n\nFix action: Create DataLoader and use .load() instead of direct query\n\n### No query depth limiting\n\nSeverity: WARNING\n\nMessage: Consider adding depth limiting to prevent DoS\n\nFix action: Add validationRules: [depthLimit(10)]\n\n### Resolver without try-catch\n\nSeverity: INFO\n\nMessage: Consider wrapping resolver logic in try-catch\n\nFix action: Add error handling to provide better error messages\n\n### JSON or Any type in schema\n\nSeverity: INFO\n\nMessage: Avoid JSON/Any types - they bypass GraphQL's type safety\n\nFix action: Define proper input/output types\n\n### Mutation returns bare type instead of payload\n\nSeverity: INFO\n\nMessage: Consider using payload types for mutations (includes errors)\n\nFix action: Create CreateUserPayload type with user and errors fields\n\n### List field without pagination arguments\n\nSeverity: INFO\n\nMessage: List fields should have pagination (limit, first, after)\n\nFix action: Add arguments: field(limit: Int, offset: Int): [Type!]!\n\n### Query hook without error handling\n\nSeverity: INFO\n\nMessage: Handle query errors in UI\n\nFix action: Destructure and handle error: const { error } = useQuery(...)\n\n### Using refetch instead of cache update\n\nSeverity: INFO\n\nMessage: Consider cache update instead of refetch for better UX\n\nFix action: Use update function to modify cache directly\n\n## Collaboration\n\n### Delegation Triggers\n\n- user needs database optimization -> postgres-wizard (Optimize queries for GraphQL resolvers)\n- user needs authentication system -> authentication-oauth (Auth for GraphQL context)\n- user needs caching layer -> caching-strategies (Response caching, DataLoader caching)\n- user needs real-time infrastructure -> backend (WebSocket setup for subscriptions)\n\n## Related Skills\n\nWorks well with: `backend`, `postgres-wizard`, `nextjs-app-router`, `react-patterns`\n\n## When to Use\n- User mentions or implies: graphql\n- User mentions or implies: graphql schema\n- User mentions or implies: graphql resolver\n- User mentions or implies: apollo server\n- User mentions or implies: apollo client\n- User mentions or implies: graphql federation\n- User mentions or implies: dataloader\n- User mentions or implies: graphql codegen\n- User mentions or implies: graphql query\n- User mentions or implies: graphql mutation\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["graphql","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity-skills"],"capabilities":["skill","source-sickn33","skill-graphql","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/graphql","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34768 github stars · SKILL.md body (25,426 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-23T18:51:25.556Z","embedding":null,"createdAt":"2026-04-18T21:38:17.935Z","updatedAt":"2026-04-23T18:51:25.556Z","lastSeenAt":"2026-04-23T18:51:25.556Z","tsv":"'+1':63,136,292,526 '/cli':936,966 '/dashboard':1196 '/generated/graphql':1010 '/graphql':656,784,2469 '/lib/use/ws':2450 '/src/generated/graphql.ts':979 '/typescript':943 '/typescript-operations':950 '/typescript-react-apollo':957 '0':373 '1':549,1352,1500,2314 '10':370,477,542,552,1233,1493,1504,2316,2318,2330,2591 '100':1242,2324 '1000':1498,2236,2269,2312,2349 '101':1246 '11':547,1238 '2':559,1361,1502 '20':1399 '2025':88 '3':1370 '4000/graphql':972 '500':2326 'access':1565,1688,1843,1937 'accident':1457,1860 'account':1137 'accountlock':1083,1095,1135,1180,1204 'accumul':2391,2400,2418 'action':2539,2562,2587,2609,2637,2661,2687,2710,2737 'activ':2456 'activesubscript':2459 'activesubscriptions.delete':2495 'activesubscriptions.set':2511 'ad':2580 'add':2588,2610,2688 'admin':459,1594,1781,1815,1822,1952 'affect':2037 'allow':1431,1517,1631 'also':38,1505,1861,2071 'altern':237,264 'alway':93,331,339,2125,2192 'analysi':2286,2297 'answer':95 'anyon':1539 'api':83,107,213,314,321,1254,1603 'apollo':194,197,224,687,703,706,988,2833,2839 'apollo-cli':196 'apollo-serv':193 'apollo/client':251,725,800 'apollo/server':222 'apollo/urql':72 'apollocli':722,782 'apolloserv':652,1485,1613,1641 'apolloserverpluginlandingpagedis':1624 'apolloserverpluginlandingpagelocaldefault':1625 'app':2804 'app.use':655 'append':747 'appropri':2120 'arg':746,752,2328 'args.limit':2329 'argument':2674,2689 'around':1670 'ask':2903 'async':576,614,660,1105,1308,1746 'attach':646 'attack':1551,1590 'auth':1662,1912,2767 'authent':207,209,2762,2765 'authentication-oauth':208,2764 'authenticationerror':1754 'author':489,545,555,626,674,1236,1277,1345,1648,1665,1684,1737,1775,1804,1827,1919,1985 'authorid':615,621,623 'authorids.map':642 'avatar':2104,2109,2135 'avoid':2184,2627 'await':585,618,1111,1116,1312,1761,1782 'b':1855 'backend':215,219,2788,2798 'bare':2644 'batch':295,528,557,1275,2557 'becom':1250,2065 'behavior':720 'better':1626,2615,2734 'boolean':494,516,518 'boundari':2911 'break':1197,1202,1211,1269,1429,1574,1702,1883,2048,2082,2206,2261,2406 'bring':50 'buggi':1444 'busi':1675,1691,1714,1773 'bypass':1699,2631 'cach':110,258,277,297,530,689,691,705,713,719,727,738,785,790,841,870,874,1359,1645,2559,2722,2728,2743,2773,2776,2779,2781 'cache-and-network':789 'cache.modify':879 'cache.writefragment':885 'caching-strategi':2775 'calculatequerycost':2345 'candelet':1777,1787 'cannot':1791 'capabl':173 'care':87 'case':1063,1185,1191,1198,1203 'catch':2596,2607 'certain':1418 'cheap':2213,2243 'check':1025,1708,1741,1838,1913,1926,1936,2524 'circular':1391 'clarif':2905 'clean':2368,2379,2485 'cleanup':2414,2432,2501 'clear':2878 'client':4,16,45,69,122,198,250,256,688,699,704,707,780,1154,1395,1432,1445,1513,2373,2481,2840 'client-sid':698 'code':900 'codegen':192,281,914,935,942,949,956,965,1002,2857 'codegen.ts':958 'codegenconfig':961,969 'collabor':2745 'comment':491,492,2238 'complex':117,144,391,1467,1481,1496,1674,1713,2304,2306 'complexityrul':2310 'comput':772 'config':968,989,996 'configur':714 'connect':2399,2482,2490 'consid':1506,2553,2579,2600,2652,2727 'console.log':2480 'const':583,597,616,627,633,649,671,726,779,801,818,843,863,883,967,1016,1101,1109,1156,1186,1304,1310,1326,1342,1482,1610,1638,1759,1776,1920,2309,2336,2343,2451,2458,2462,2491,2715 'content':487 'context':648,659,2472,2770 'contract':78,133,322 'control':44 'conveni':2006 'cost':2285,2296,2321,2335,2344,2348,2356,2358,2364 'costplugin':2337 'cover':56 'craft':47,1447 'crash':1413 'creat':565,844,867,1300,1353,2563,2662 'createcomplexitylimitrul':1476,1497,2299,2311 'createdat':479 'createload':570,664 'createus':393,848,851,864,872 'createuser.user':878,887 'createuserform':862 'createuserinput':395,418,850 'createuserpayload':396,441,2663 'criteria':2914 'critic':1221,1386 'crud':98 'ctx':2473,2479,2484 'ctx.connectionparams':2476,2493 'currentus':1808,1817,1820,1940,1942,1959,1961,1976,1978 'currentuser.id':1946 'currentuser.role':1951 'cursor':511 'custom':718,2319 'd':932,939,946,953 'danger':41 'data':7,19,118,160,439,701,819,871,886,1017,1031,1041,1056,1228,1690,1871,1876,2041,2273 'data.login':1188 'data.user':1026 'data.user.name':838 'databas':202,531,1218,1239,1258,1285,2546,2750 'database-queri':201 'dataload':60,139,189,289,523,538,540,556,562,564,575,613,1295,1297,1299,1307,2555,2564,2780,2851 'date':1132 'datetim':480,1099,2111,2142 'db':571,662,665,1108,1749 'db.post.delete':1796 'db.post.findmany':619 'db.post.findunique':1762 'db.user.findbyemail':1112 'db.user.findmany':586,1313 'dead':2389,2398 'deep':1401,1460 'deepli':1378 'default':995 'defaultopt':786 'defin':2305,2638 'degrad':1263 'deleg':2746 'delet':1792 'deletepost':1745 'deleteus':403 'deleteuserpayload':406 'deploy':1533 'deprec':1599 'depth':142,1465,1473,1491,2574,2581 'depthlimit':1469,1492,2590 'describ':2882 'design':58,85,128,170,177,214,300,311,316,323,2088 'destructur':2711 'develop':1579 'didresolveoper':2340 'direct':1652,1663,1672,1683,1696,1703,1734,2545,2570,2744 'directive-on':1695 'disabl':1606,2535 'disconnect':2416 'discov':1544 'divers':121 'document':84,973,2342,2346 'doesn':1729 'dos':1382,2585 'edg':501,744,756,1213 'edit':1718 'either':1409 'email':355,419,428,468,814,857,896,1074,1106,1113,1125,1161,1166,1167,1806,1811,1865,1938,2102,2131 'enabl':1523,1538,2526 'endcursor':521 'endpoint':27 'enforc':1694 'entir':1660,1994,2084 'enum':455,456 'env':1618,1622,2543 'environ':2894 'environment-specif':2893 'equal':2267 'error':158,437,444,445,821,832,834,858,1034,1039,1054,1065,2014,2028,2036,2352,2611,2616,2659,2668,2699,2706,2714,2716 'error.message':836 'essenti':286,1577 'even':1453 'eventu':2423 'everi':2218 'everyth':2092,2249 'exact':5,17,1553 'except':1043 'exhaust':1421 'exist':634,639,743,882,898,2126,2140 'existing.edges':757 'expect':165,1038,1052,1061 'expens':2208,2239,2246,2279,2355 'expert':2899 'exponenti':1451 'export':994 'expos':1526,1571,1872 'expressmiddlewar':657 'fail':1050,1685,2079,2197 'failur':166,1062,1069,1992,2195,2203 'fals':993 'fast':247 'fastifi':244 'featur':255 'feder':65,183,2846 'fetch':541,1227,2268,2281 'fetchpolici':788 'field':329,732,734,768,773,859,880,1549,1597,1802,1833,1849,1875,1884,1900,1908,1917,1924,1935,1991,2001,2039,2059,2080,2130,2134,2308,2320,2669,2671,2679,2690 'field-level':1801,1916 'fieldcost':2322 'find':1593,1667 'first':127,381,2235,2684 'firstnam':776 'fit':1679,1731 'fix':1293,1462,1605,1736,1915,2087,2294,2429,2538,2561,2586,2608,2636,2660,2686,2709,2736 'flat':712 'flexibl':33 'forbiddenerror':1790,1983 'found':353,1772 'fragment':146,888,890 'full':254,1568 'full-featur':253 'fulli':1004,1028 'fullnam':769 'function':569,815,861,1011,2740 'generat':284,901,915,978,998 'generatetoken':1147 'generic':155 'get':802,823,1286 'getus':806 'give':3,15 'good':239,1705 'gql':804,846,889,1158 'graphql':1,2,13,14,75,90,113,175,179,182,185,188,191,230,233,269,280,313,913,934,941,948,955,964,975,1001,1064,1270,1430,1472,1479,1563,2049,2264,2302,2438,2448,2632,2758,2769,2816,2821,2827,2845,2856,2862,2868 'graphql-codegen':190,279,933,940,947,954,963,1000 'graphql-dataload':187 'graphql-depth-limit':1471 'graphql-feder':181 'graphql-request':268 'graphql-resolv':178 'graphql-schema-design':174 'graphql-subscript':184,2437 'graphql-validation-complex':1478,2301 'graphql-w':2447 'graphql-yoga':232 'group':624,1726 'grow':2387,2395 'hammer':1287 'handl':1035,1183,1371,1712,2612,2700,2704,2713 'hasnextpag':515 'haspreviouspag':517 'helper':1799 'high':104,1530,1656,1835 'high-perform':103 'hold':2409 'hook':795,2697 'httpserver':2467 'id':345,346,398,399,404,405,413,466,467,483,484,577,588,590,596,607,609,643,645,763,807,808,810,811,812,826,855,894,1021,1173,1309,1315,1317,1325,1336,1338,1369,1747,1764,1798,1818,1928,1962,1979,2098,2099,2123,2124,2227 'identifi':766 'ids.map':606,1335 'impli':2815,2820,2826,2832,2838,2844,2850,2855,2861,2867 'import':561,721,796,959,1006,1296,1318,1468,1475,2298,2433,2440,2444 'includ':1903,2658 'incom':745,755,760 'incoming.edges':758 'independ':1273 'individu':1229,1848 'ineffect':2258 'infinit':749 'info':2598,2625,2650,2676,2702,2725 'inform':1570 'infrastructur':218,2787 'inmemorycach':723,729 'inmemorylrucach':1647 'input':388,394,400,415,417,426,849,852,853,1324,1368,2908 'input/output':2640 'insight':74 'instal':929,931,938,945,952 'instead':1970,2568,2646,2720,2730 'int':369,372,382,476,506,2692,2694 'integr':70,245 'intent':172,325,2090 'intern':1596 'introspect':30,1522,1537,1561,1575,1607,1616,2525,2532,2541 'invalid':1124 'invalidcredenti':1082,1091,1122,1177,1199 'isn':91 'issu':2381 'item':366,1373 'jit':249 'json':2618 'json/any':2628 'key':73,1350 'keyarg':736 'keyfield':762 'know':1552 'lastlogin':2110,2141 'lastnam':778 'layer':2774 'leav':2382 'legitim':1454 'less':25 'lesson':89 'level':1400,1803,1918 'lightweight':236,263 'limit':140,368,475,1440,1463,1474,1489,1494,1509,1511,2256,2291,2333,2361,2575,2582,2683,2691,2870 'list':361,1265,2148,2153,2162,2172,2180,2670,2678 'listfactor':1503,2317 'load':820,829,865,1018,2567 'loader':566,663,676,683,1301,1347,1355 'loaders.postsbyauthorloader.load':685 'loaders.userloader.load':678,1348 'localhost':971 'lock':1139 'log':1261,1757,2115 'logic':1715,1774,2603 'login':1073,1104,1157,1160,1165 'loginresult':1078,1080,1149 'loginsuccess':1081,1085,1144,1171,1192 'long':2420 'long-run':2419 'magnitud':2277 'make':35,39,546,1216,1237,2000 'malici':1442 'manag':260,702 'mani':1256 'manual':925 'map':600,630,1329,2461 'match':2879 'may':2138,2144 'mean':2053 'meaning':169 'medium':1997,2216,2371 'memori':1420,2386,2393,2427 'mention':2813,2818,2824,2830,2836,2842,2848,2853,2859,2865 'mercurius':242 'merg':742 'messag':414,835,860,1092,1096,1123,1136,1178,1181,2531,2552,2578,2599,2617,2626,2651,2677,2703,2726 'messagereceiv':411,2503 'microservic':67 'minim':275 'miss':1372,2916 'moder':460,1728 'modifi':2742 'must':330,1755 'mutat':150,387,392,839,847,876,1072,1103,1159,1547,1595,1744,2642,2657,2869 'n':62,135,291,525 'name':421,430,470,813,856,895,1033,1174,1550,1931,2100,2127 'need':9,21,123,1909,1927,2749,2761,2772,2783 'nest':1379,1425,1490,2272 'network':792,2380 'never':2114 'new':574,599,612,629,651,728,781,1131,1306,1328,1354,1484,1612,1640,1646,1753,1768,1789,1982,2351,2453,2460,2464 'newref':884,899 'newus':891 'nextj':2803 'nextjs-app-rout':2802 'node':509 'non':327,336,359,364,1989,2003,2057,2073,2094,2151,2156,2165,2170,2189 'non-nul':326,335,358,363,1988,2002,2056,2072,2093,2150,2155,2164,2169,2188 'normal':690,708 'note':227,238,246,257,265,274,285,294 'notfounderror':449,1769 'npm':930,937,944,951 'npx':999 'null':328,337,350,360,365,610,1375,1826,1944,1956,1965,1973,1990,2004,2012,2026,2033,2051,2058,2066,2074,2095,2146,2152,2157,2166,2171,2190 'nullabl':167,307,324,348,2089,2118,2143,2161,2174,2179,2182,2199 'nullifi':1993,2017 'number':1868 'oauth':210,2766 'obj':1151 'obj.__typename':1153 'object':2019 'objectcost':1501,2315 'offset':371,2693 'onconnect':2478 'ondisconnect':2483 'one':26,1905,2035,2078,2214,2244,2282 'oper':157,905,922,984,1047,2265 'optim':2751,2755 'option':2137,2201 'order':594,1322,1366,2275 'orphan':2383 'output':2888 'pageinfo':503,504,514 'pagin':377,495,733,2673,2682 'parent':1889,1894,1995,2018,2064,2069 'partial':2040 'password':1076,1107,1118,1127,1163,1168,1169 'path':2468 'pattern':298,2808 'payload':434,2518,2648,2654 'payload.roomid':2521 'per':567,740,1302,1356,1512,2307 'perform':105,1262 'permiss':2909 'persist':1514,1628 'persistedqueri':1644 'phone':1867 'phonenumb':1957 'playground':1564 'plugin':980,1620 'point':1351 'polici':694,716 'popular':229 'post':474,478,482,543,551,617,632,640,673,675,681,1234,1243,1283,1344,1346,1721,1724,1760,1766,1770,1794,2237 'post.authorid':636,638,679,1349,1778 'post.groupid':1785 'postgr':205,2753,2800 'postgres-wizard':204,2752,2799 'posts.foreach':631 'postsbyauthor':628 'postsbyauthor.get':635,644 'postsbyauthor.set':637 'postsbyauthorload':611 'power':37 'pre':1519,1633 'pre-regist':1518,1632 'present':2193 'prevent':64,134,293,527,2584 'principl':124 'priorit':2253 'privaci':1873 'privat':1864,1934 'privatedata':1974 'process':2221 'process.env.node':1617,1621,2542 'product':1525,1535,1567,1584,1609,1619,1623,1637,2528,2537,2544 'profil':1858 'project':912 'propag':2015,2052,2076 'proper':43,306,2292,2367,2413,2430,2639 'provid':2614 'public':106,1857,1923 'publish':493 'pubsub':2434,2452,2454,2474,2507 'pubsub.asynciterator':2515 'queri':48,137,141,203,334,379,532,548,560,579,731,737,741,793,805,927,1155,1219,1231,1240,1247,1259,1291,1380,1398,1419,1426,1437,1448,1455,1464,1495,1507,1515,1521,1541,1562,1629,1635,1829,1895,2023,2031,2198,2209,2219,2228,2240,2247,2254,2295,2353,2547,2560,2571,2573,2696,2705,2756,2863 'query.analytics':2325 'query.searchusers':2323 'rare':2176 'rate':1510,2255,2290,2332,2360 'ratelimiter.consume':2362 'react':987,2807 'react-pattern':2806 'read':770 'readfield':771,775,777 'real':2785 'real-tim':2784 'recommend':1292,1461,1604,1735,1914,2086,2159,2293,2428 'redirect':1195 'refetch':2719,2732 'regist':1520,1634 'relat':2793 'relationship':119,463,537,1392 'relay':497 'relay-styl':496 'reli':1659 'repeat':1289 'req':661 'req.user':667 'request':270,273,568,1303,1357,1434,2341 'request.userid':2363 'requestdidstart':2338 'requir':1450,2129,2133,2907 'resolv':59,180,332,536,654,670,672,1100,1102,1215,1225,1271,1278,1341,1343,1406,1487,1615,1643,1654,1739,1743,1885,1902,1921,2008,2062,2499,2549,2592,2602,2759,2828 'resolvetyp':1150 'resourc':1845,2232,2411,2417,2487 'respons':709,928,1248,1255,1423,2024,2085,2207,2778 'rest':99,108,212 'rest-api-design':211 'result':1187,1363 'result.__typename':1190 'result.message':1201,1206 'result.token':1194 'result.unlockat':1210 'return':340,349,572,591,605,641,677,684,754,759,774,830,833,837,897,1030,1120,1133,1142,1152,1319,1334,1362,1374,1795,1823,1825,1891,1896,1943,1948,1953,1955,1964,1966,1972,1986,2011,2032,2045,2339,2514,2520,2643 'reusabl':148 'review':2900 'right':2117 'roadmap':1588 'role':423,424,432,433,457,472,473,1821 'room':2516 'roomid':412,2506,2513,2517,2519,2522 'router':2805 'rule':1676,1692,2185 'run':997,1272,1279,1886,2421,2424 'safe':303,904 'safeti':2635,2910 'scalarcost':1499,2313 'schema':29,57,80,126,130,176,299,304,315,318,907,920,970,1070,1389,1528,1543,1558,1651,2471,2623,2822 'schema-first':125 'scope':200,1360,2881 'scroll':750 'search':375 'searchus':378 'second':1251 'secur':1698 'see':1853,1862 'select':149 'self':1813 'send':1396 'sensit':1870,1904,1907 'separ':739,1217,1280 'server':53,195,221,225,231,650,658,1384,1403,1415,1483,1611,1639,2385,2401,2410,2422,2466,2834 'serverless':241 'set':2540 'seterror':1200,1205 'settoken':1193 'setup':2790 'sever':1220,1385,1529,1655,1834,1996,2215,2370,2529,2550,2576,2597,2624,2649,2675,2701,2724 'shape':1438 'sharp':1212 'shouldn':2204 'show':1810 'side':700 'similar':1257,1290 'simpl':97,272,1682,1707,1740,2225 'simpler':101,267 'singl':578 'situat':1222,1387,1531,1657,1836,1998,2217,2372 'size':1266 'skill':55,2794,2873 'skill-graphql' 'skip':1377 'slow':1253,1422,2248,2402 'smaller':266 'someon':1666 'source-sickn33' 'specif':153,2895 'src':974,976 'startcursor':519 'starv':2241 'state':259 'still':1601 'stop':2901 'strategi':2777 'string':356,380,384,420,422,429,431,469,471,486,488,512,520,522,1015,1075,1077,1089,1093,1097,1162,1164,2101,2103,2105,2128,2132,2136 'style':498 'subscrib':2374,2504 'subscript':186,408,2365,2384,2390,2408,2431,2439,2457,2498,2502,2510,2792 'substitut':2891 'success':2913 'switch':1189 'symptom':1252,1414,1557,1686,1869,2030,2245,2392 'system':2763 'target':1556 'task':2877 'temporarili':1138 'test':2897 'throw':343,1752,1767,1788,1969,1981,2009,2350 'thumb':2187 'time':1249,1410,2397,2786 'timeout':1416,1508 'titl':485 'token':1088,1146,1175 'tool':220,278,1581 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'totalcount':505 'track':2357,2455,2509 'treat':2210,2886 'tri':1207,1404,2595,2606 'trigger':2747 'true':991 'try-catch':2594,2605 'tsx':977 'type':28,163,283,302,333,386,389,407,416,435,440,451,461,464,481,499,507,513,693,715,903,917,926,960,1005,1024,1029,1059,1071,1084,1090,1094,1546,1569,2096,2121,2621,2629,2634,2641,2645,2655,2664,2695 'type-check':1023 'type-saf':301,902 'typedef':653,1486,1614,1642 'typenam':1121,1134,1143 'typepolici':730 'typescript':288,911,916,981,983,986 'typescript-oper':982 'typescript-react-apollo':985 'u':602,604,1331,1333 'u.id':603,1332 'ui':2708 'unauthor':1687 'unexpect':1068,2034 'union':162,446,1037,1058,1079 'unlockat':1098,1140,1182 'unrel':2038 'unsubscrib':2378 'updat':156,842,869,873,2723,2729,2739 'updateus':397 'updateuserinput':401,427 'updateuserpayload':402,447 'updateusersuccess':448,452 'uri':783 'urql':199,261 'usag':1003,2394 'use':112,145,161,248,310,535,668,697,910,1046,1057,1294,1339,1627,2177,2229,2554,2566,2653,2718,2738,2811,2871 'usecreateusermut':1008 'usegetuserqueri':1007,1019 'usemut':798,866 'usequeri':797,822,2717 'user':341,344,347,357,367,374,410,425,442,443,453,454,458,465,490,510,582,584,666,680,682,735,761,767,803,809,824,845,854,868,881,893,1032,1086,1087,1110,1115,1145,1148,1172,1311,1716,1748,1751,1805,1807,1841,1850,1854,1880,1898,1922,1929,1932,1939,1958,1975,2097,2122,2149,2158,2160,2167,2168,2175,2178,2183,2226,2234,2270,2283,2666,2748,2760,2771,2782,2812,2817,2823,2829,2835,2841,2847,2852,2858,2864 'user.email':1824,1949,1954 'user.hash':1119 'user.id':686,1779,1784,1819,1930,1947,1963,1980 'user.lockeduntil':1129,1130,1141 'user.name':1933 'user.phonenumber':1967 'user.posts':2327 'user.posts.author.posts':1393 'user.privatedata':1987 'user.role':1780 'userbyemail':354 'userconnect':385,500 'usercr':409 'useredg':502,508 'userid':817,827,1013,1014,1022,2475,2477,2492,2494,2496,2508,2512 'userload':573,1305 'usermap':598,1327 'usermap.get':608,1337 'usermoderatesgroup':1783 'userprofil':816,1012 'users.map':601,1330 'useserv':2445,2470 'ux':2735 'v4':226 'valid':1436,1480,2303,2523,2896 'validationerror':450 'validationrul':1488,2589 'variabl':825,1020 'verifypassword':1117 'via':1560 'violat':1874 'visibl':1559,1877 'warn':2530,2551,2577 'watchqueri':787 'way':1053,1669,2251 'websocket':217,2789 'websocket-infrastructur':216 'websocketserv':2441,2465 'well':2796 'whole':2022 'win':111 'withcompon':992 'withfilt':2435,2505 'withhook':990 'without':42,539,1274,1439,2284,2412,2593,2672,2698 'wizard':206,2754,2801 'work':1452,1602,2795 'wrap':2601 'write':1224 'wrong':1879,2091 'ws':2443,2449 'wsserver':2463,2497 'yoga':234","prices":[{"id":"f47c78de-605e-4abd-b890-8cddb38f2f57","listingId":"010ce7a7-6b82-4134-abf3-0604fe4832ae","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:38:17.935Z"}],"sources":[{"listingId":"010ce7a7-6b82-4134-abf3-0604fe4832ae","source":"github","sourceId":"sickn33/antigravity-awesome-skills/graphql","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/graphql","isPrimary":false,"firstSeenAt":"2026-04-18T21:38:17.935Z","lastSeenAt":"2026-04-23T18:51:25.556Z"}],"details":{"listingId":"010ce7a7-6b82-4134-abf3-0604fe4832ae","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"graphql","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34768,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-23T06:41:03Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"640232d4cadb7e28eaa907aab84e39fd98855bc1","skill_md_path":"skills/graphql/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/graphql"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"graphql","description":"GraphQL gives clients exactly the data they need - no more, no"},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/graphql"},"updatedAt":"2026-04-23T18:51:25.556Z"}}