public final class ApolloResponseFetchers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ResponseFetcher |
CACHE_AND_NETWORK
Signal the apollo client to fetch the data from both the network and the cache.
|
static ResponseFetcher |
CACHE_FIRST
Signals the apollo client to first fetch the data from the normalized cache.
|
static ResponseFetcher |
CACHE_ONLY
Signals the apollo client to only fetch the data from the normalized cache.
|
static ResponseFetcher |
NETWORK_FIRST
Signals the apollo client to first fetch the data from the network.
|
static ResponseFetcher |
NETWORK_ONLY
Signals the apollo client to only fetch the GraphQL data from the network.
|
| Constructor and Description |
|---|
ApolloResponseFetchers() |
public static final ResponseFetcher CACHE_ONLY
Response is sent back with the Operation info
wrapped inside.public static final ResponseFetcher NETWORK_ONLY
public static final ResponseFetcher CACHE_FIRST
public static final ResponseFetcher NETWORK_FIRST
public static final ResponseFetcher CACHE_AND_NETWORK