ClientOptions Interface Reference
Pass a ClientOptions object into createClient() to control caching, network retries, normalization keys, and SSR behavior across your application.
| Option | Type | Default | Behavior |
|---|---|---|---|
queryFetcher | QueryFetcher | Required | Async transport executing POST/GET GraphQL requests |
normalization | boolean | NormalizationOptions | true | Normalizes entities by __typename + identifier field |
retry | boolean | RetryOptions | true | Retries transient network failures with exponential backoff |
staleWhileRevalidate | boolean | false | Returns cached values immediately while refreshing in background |
suspense | boolean | false | Throws active promises for React Suspense boundaries |
For production APIs behind CDNs or rate limiters, pair conservative retry settings with structured handling of GQlessError and review the TypeScript object types handbook when extending custom normalization key functions. See also the Core Client API overview.