From 34f38bfff892a5b6204d3fa739bbaab8a81d509a Mon Sep 17 00:00:00 2001 From: Arjunlal B Date: Fri, 5 Feb 2021 12:14:22 +0530 Subject: [PATCH 1/2] feat: add "network-only" cacheability option --- projects/graphql-client/src/graphql-config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/graphql-client/src/graphql-config.ts b/projects/graphql-client/src/graphql-config.ts index 2295573c6..5893cd156 100644 --- a/projects/graphql-client/src/graphql-config.ts +++ b/projects/graphql-client/src/graphql-config.ts @@ -39,7 +39,8 @@ export interface GraphQlRequestOptions { export const enum GraphQlRequestCacheability { NotCacheable = 'no-cache', // Values used by apollo - Cacheable = 'cache-first' + Cacheable = 'cache-first', + NetworkOnly = 'network-only' } export const enum GraphQlHandlerType { From eb5e01a7a4de286c66fc77ad3e79c08bc77bb688 Mon Sep 17 00:00:00 2001 From: Arjunlal B Date: Fri, 5 Feb 2021 22:51:12 +0530 Subject: [PATCH 2/2] fix: update name --- projects/graphql-client/src/graphql-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/graphql-client/src/graphql-config.ts b/projects/graphql-client/src/graphql-config.ts index 5893cd156..0342b864a 100644 --- a/projects/graphql-client/src/graphql-config.ts +++ b/projects/graphql-client/src/graphql-config.ts @@ -40,7 +40,7 @@ export interface GraphQlRequestOptions { export const enum GraphQlRequestCacheability { NotCacheable = 'no-cache', // Values used by apollo Cacheable = 'cache-first', - NetworkOnly = 'network-only' + RefreshCache = 'network-only' } export const enum GraphQlHandlerType {