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 |
Crea query e mutazioni GraphQL utilizzando gql.tada e urql. Implementa il modello di repository con operazioni indipendenti dai tipi e gestione degli errori. Trigger su: query GraphQL, mutazione GraphQL, gql.tada, client urql, API Saleor, frammenti, pattern di repository, schema di recupero, mock MSW. Fonte: saleor/configurator.