From 717e662b52a4e79e01d81b405cd11fe2dda66b76 Mon Sep 17 00:00:00 2001 From: Gregg B <514026+greggb@users.noreply.github.com> Date: Wed, 22 May 2019 13:37:13 -0400 Subject: [PATCH] Add cache-and-network to FetchPolicy options `cache-and-network` is a valid choice for fetchPolicy, and while it is documented, it is not part of the QueryOptions interface. --- packages/apollo-client/src/core/watchQueryOptions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apollo-client/src/core/watchQueryOptions.ts b/packages/apollo-client/src/core/watchQueryOptions.ts index 809157cb7d7..c572b1cf450 100644 --- a/packages/apollo-client/src/core/watchQueryOptions.ts +++ b/packages/apollo-client/src/core/watchQueryOptions.ts @@ -17,9 +17,10 @@ import { PureQueryOptions, OperationVariables } from './types'; */ export type FetchPolicy = | 'cache-first' - | 'network-only' + | 'cache-and-network' | 'cache-only' | 'no-cache' + | 'network-only' | 'standby'; export type WatchQueryFetchPolicy = FetchPolicy | 'cache-and-network';