Skip to content

Commit ef9b95e

Browse files
authored
feat: add "network-only" cacheability option (#568)
* feat: add "network-only" cacheability option
1 parent 59a2446 commit ef9b95e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/graphql-client/src/graphql-config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export interface GraphQlRequestOptions {
3939

4040
export const enum GraphQlRequestCacheability {
4141
NotCacheable = 'no-cache', // Values used by apollo
42-
Cacheable = 'cache-first'
42+
Cacheable = 'cache-first',
43+
RefreshCache = 'network-only'
4344
}
4445

4546
export const enum GraphQlHandlerType {

0 commit comments

Comments
 (0)