diff --git a/src/exchange.ts b/src/exchange.ts index 6abc792..1547d3f 100644 --- a/src/exchange.ts +++ b/src/exchange.ts @@ -132,7 +132,8 @@ export const cacheExchange = (opts?: CacheExchangeOpts): Exchange => ({ const op = ops.get(key); if (op !== undefined) { ops.delete(key); - client.reexecuteOperation(op); + const cacheFirst = toRequestPolicy(op, 'cache-first'); + client.reexecuteOperation(cacheFirst); } } });