·writing-graphql-operations
</>

writing-graphql-operations

saleor/configurator

使用 gql.tada 和 urql 创建 GraphQL 查询和突变。通过类型安全操作和错误处理来实现存储库模式。触发:GraphQL 查询、GraphQL 突变、gql.tada、urql 客户端、Saleor API、片段、存储库模式、获取模式、MSW 模拟。

10安装·1热度·@saleor

安装

$npx skills add https://github.com/saleor/configurator --skill writing-graphql-operations

SKILL.md

Guide the creation and maintenance of GraphQL operations following project conventions for type safety, organization, error handling, and testing.

| urql | GraphQL client with caching | | gql.tada | Type-safe GraphQL with TypeScript inference | | @urql/exchange-auth | Authentication handling | | @urql/exchange-retry | Rate limiting and retry logic |

| CombinedError | Network/GraphQL errors | GraphQLError.fromCombinedError() | | errors array | Mutation validation errors | Check result.data?.mutation?.errors | | Rate limit (429) | Too many requests | Automatic retry via exchange | | Auth error | Invalid/expired token | Re-authenticate |

使用 gql.tada 和 urql 创建 GraphQL 查询和突变。通过类型安全操作和错误处理来实现存储库模式。触发:GraphQL 查询、GraphQL 突变、gql.tada、urql 客户端、Saleor API、片段、存储库模式、获取模式、MSW 模拟。 来源:saleor/configurator。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/saleor/configurator --skill writing-graphql-operations
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 writing-graphql-operations?

使用 gql.tada 和 urql 创建 GraphQL 查询和突变。通过类型安全操作和错误处理来实现存储库模式。触发:GraphQL 查询、GraphQL 突变、gql.tada、urql 客户端、Saleor API、片段、存储库模式、获取模式、MSW 模拟。 来源:saleor/configurator。

如何安装 writing-graphql-operations?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/saleor/configurator --skill writing-graphql-operations 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/saleor/configurator