public interface ApolloMutationCall<T> extends ApolloCall<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ApolloMutationCall.Factory
Factory for creating
ApolloMutationCall calls. |
ApolloCall.Callback<T>, ApolloCall.StatusEvent| Modifier and Type | Method and Description |
|---|---|
ApolloMutationCall<T> |
cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
ApolloMutationCall<T> |
clone()
Creates a new, identical call to this one which can be enqueued or executed even if this call has already been.
|
ApolloMutationCall<T> |
refetchQueries(com.apollographql.apollo.api.OperationName... operationNames)
Sets a list of
ApolloQueryWatcher query names to be re-fetched once this mutation completed. |
ApolloMutationCall<T> |
refetchQueries(com.apollographql.apollo.api.Query... queries)
Sets a list of
Query to be re-fetched once this mutation completed. |
ApolloMutationCall<T> |
requestHeaders(RequestHeaders requestHeaders)
Sets the
RequestHeaders to use for this call. |
cancel, enqueue, operationisCanceled@NotNull ApolloMutationCall<T> refetchQueries(@NotNull com.apollographql.apollo.api.OperationName... operationNames)
Sets a list of ApolloQueryWatcher query names to be re-fetched once this mutation completed.
operationNames - array of OperationName query names to be re-fetchedApolloMutationCall that will trigger re-fetching provided queries@NotNull ApolloMutationCall<T> refetchQueries(@NotNull com.apollographql.apollo.api.Query... queries)
Sets a list of Query to be re-fetched once this mutation completed.
queries - array of Query to be re-fetchedApolloMutationCall that will trigger re-fetching provided queries@NotNull ApolloMutationCall<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
ApolloCallCacheHeaders to use for this call. com.apollographql.apollo.interceptor.FetchOptions will
be configured with this headers, and will be accessible from the ResponseFetcher used for this call.cacheHeaders in interface ApolloCall<T>cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are
defined in ApolloCacheHeaders.CacheHeaders.@NotNull ApolloMutationCall<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
RequestHeaders to use for this call. These headers will be added to the HTTP request when
it is issued. These headers will be applied after any headers applied by application-level interceptors
and will override those if necessary.requestHeaders - The RequestHeaders to use for this request.RequestHeaders.@NotNull ApolloMutationCall<T> clone()
ApolloCallclone in interface ApolloCall<T>