graphql-operations 是做什么的?
编写 GraphQL 操作(查询、变更、片段)并遵循最佳实践的指南。在以下场景使用此技能:(1) 编写 GraphQL 查询或变更,(2) 使用片段组织操作,(3) 优化数据获取模式,(4) 设置类型生成或代码检查,(5) 审查操作效率。
编写 GraphQL 操作(查询、变更、片段)并遵循最佳实践的指南。在以下场景使用此技能:(1) 编写 GraphQL 查询或变更,(2) 使用片段组织操作,(3) 优化数据获取模式,(4) 设置类型生成或代码检查,(5) 审查操作效率。
该技能为开发者提供了一套全面的指南,用于在 Apollo GraphQL 生态中编写和优化 GraphQL 操作。它涵盖了查询、变更和片段的最佳实践,帮助用户高效组织操作模式并减少冗余数据获取。技能支持通过片段复用字段集合来提升代码可维护性,同时优化数据获取以避免过度获取或欠获取。此外,它还指导用户如何设置类型生成(例如使用 GraphQL Code Generator)和代码检查(例如 ESLint GraphQL 插件),从而在开发过程中保证操作的一致性和正确性。对于已经使用或计划使用 Apollo Client、GraphQL 服务器或相关工具(如 Apollo Studio)的开发者来说,此技能特别有用,能够帮助他们审查操作效率并减少潜在的性能问题。
npx skills add https://github.com/apollographql/skills/tree/main/skills/graphql-operationsInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
编写 GraphQL 操作(查询、变更、片段)并遵循最佳实践的指南。在以下场景使用此技能:(1) 编写 GraphQL 查询或变更,(2) 使用片段组织操作,(3) 优化数据获取模式,(4) 设置类型生成或代码检查,(5) 审查操作效率。
This repo contains 9 individual skills — each has its own dedicated page.
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React project, (2) writing GraphQL queries or mutations with hooks, (3) configuring caching or cache policies, (4) managing local state with reactive variables, (5) troubleshooting Apollo Client errors or performance issues.
Guide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors with @source and @connect directives. Use this skill when the user: (1) mentions "connectors", "Apollo Connectors", or "REST Connector", (2) wants to integrate a REST API into GraphQL, (3) references @source or @connect directives, (4) works with files containing "# Note to AI Friends: This is an Apollo Connectors schema".
Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated supergraph, (2) defining or modifying entities with @key, (3) sharing types/fields across subgraphs with @shareable, (4) working with federation directives (@external, @requires, @provides, @override, @inaccessible), (5) troubleshooting composition errors, (6) any task involving federation schema design patterns.
Guide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring Apollo MCP Server, (2) defining MCP tools from GraphQL operations, (3) using introspection tools (introspect, search, validate, execute), (4) troubleshooting MCP server connectivity or tool execution issues.
Version-aware guide for configuring and running Apollo Router for federated GraphQL supergraphs. Generates correct YAML for both Router v1.x and v2.x. Use this skill when: (1) setting up Apollo Router to run a supergraph, (2) configuring routing, headers, or CORS, (3) implementing custom plugins (Rhai scripts or coprocessors), (4) configuring telemetry (tracing, metrics, logging), (5) troubleshooting Router performance or connectivity issues.
Guide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining GraphQL schemas, (3) implementing authentication or authorization, (4) creating plugins or custom data sources, (5) troubleshooting Apollo Server errors or performance issues.
Guide for designing GraphQL schemas following industry best practices. Use this skill when: (1) designing a new GraphQL schema or API, (2) reviewing existing schema for improvements, (3) deciding on type structures or nullability, (4) implementing pagination or error patterns, (5) ensuring security in schema design.
Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2) composing supergraph schemas locally or via GraphOS, (3) running local supergraph development with rover dev, (4) validating schemas with check and lint commands, (5) configuring Rover authentication and environment, (6) exploring or searching a graph's schema for agent-driven discovery (rover schema describe / rover schema search).
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.