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 |
Создает запросы и мутации GraphQL, используя gql.tada и urql. Реализует шаблон репозитория с типобезопасными операциями и обработкой ошибок. Запускается по: запросу GraphQL, мутации GraphQL, gql.tada, клиенту urql, API Saleor, фрагментам, шаблону репозитория, схеме выборки, макетам MSW. Источник: saleor/configurator.