Package com.apollographql.apollo
Interface ApolloMutationCall<T>
-
- All Superinterfaces:
ApolloCall<T>,Cancelable
- All Known Implementing Classes:
RealApolloCall
public interface ApolloMutationCall<T> extends ApolloCall<T>
A call prepared to execute GraphQL mutation operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceApolloMutationCall.Builder<T>static interfaceApolloMutationCall.FactoryFactory for creatingApolloMutationCallcalls.-
Nested classes/interfaces inherited from interface com.apollographql.apollo.ApolloCall
ApolloCall.Callback<T>, ApolloCall.StatusEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ApolloMutationCall<T>cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)Deprecated.ApolloMutationCall<T>clone()Deprecated.ApolloMutationCall<T>refetchQueries(com.apollographql.apollo.api.OperationName... operationNames)Deprecated.ApolloMutationCall<T>refetchQueries(com.apollographql.apollo.api.Query... queries)Deprecated.ApolloMutationCall<T>requestHeaders(RequestHeaders requestHeaders)Deprecated.ApolloMutationCall.Builder<T>toBuilder()-
Methods inherited from interface com.apollographql.apollo.ApolloCall
cancel, enqueue, operation
-
Methods inherited from interface com.apollographql.apollo.internal.util.Cancelable
isCanceled
-
-
-
-
Method Detail
-
cacheHeaders
@Deprecated @NotNull ApolloMutationCall<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Deprecated.Sets theCacheHeadersto use for this call.com.apollographql.apollo.interceptor.FetchOptionswill be configured with this headers, and will be accessible from theResponseFetcherused for this call. Deprecated, usetoBuilder()to mutate the ApolloCall- Specified by:
cacheHeadersin interfaceApolloCall<T>- Parameters:
cacheHeaders- theCacheHeadersthat will be passed with records generated from this request toNormalizedCache. Standardized cache headers are defined inApolloCacheHeaders.- Returns:
- The ApolloCall object with the provided
CacheHeaders.
-
refetchQueries
@Deprecated @NotNull ApolloMutationCall<T> refetchQueries(@NotNull com.apollographql.apollo.api.OperationName... operationNames)
Deprecated.Sets a list of
ApolloQueryWatcherquery names to be re-fetched once this mutation completed.- Parameters:
operationNames- array ofOperationNamequery names to be re-fetched- Returns:
ApolloMutationCallthat will trigger re-fetching provided queries
-
refetchQueries
@Deprecated @NotNull ApolloMutationCall<T> refetchQueries(@NotNull com.apollographql.apollo.api.Query... queries)
Deprecated.Sets a list of
Queryto be re-fetched once this mutation completed.- Parameters:
queries- array ofQueryto be re-fetched- Returns:
ApolloMutationCallthat will trigger re-fetching provided queries
-
requestHeaders
@Deprecated @NotNull ApolloMutationCall<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
Deprecated.Sets theRequestHeadersto 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.- Parameters:
requestHeaders- TheRequestHeadersto use for this request.- Returns:
- The ApolloCall object with the provided
RequestHeaders.
-
clone
@Deprecated @NotNull ApolloMutationCall<T> clone()
Deprecated.Description copied from interface:ApolloCallCreates a new, identical call to this one which can be enqueued or executed even if this call has already been. Deprecated, useApolloCall.toBuilder()to mutate the ApolloCall- Specified by:
clonein interfaceApolloCall<T>- Returns:
- The cloned ApolloCall object.
-
toBuilder
@NotNull ApolloMutationCall.Builder<T> toBuilder()
- Specified by:
toBuilderin interfaceApolloCall<T>
-
-