Package com.apollographql.apollo
Interface ApolloMutationCall.Builder<T>
-
- All Superinterfaces:
ApolloCall.Builder<T>
- All Known Implementing Classes:
RealApolloCall.Builder
- Enclosing interface:
- ApolloMutationCall<T>
public static interface ApolloMutationCall.Builder<T> extends ApolloCall.Builder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApolloMutationCall<T>build()ApolloMutationCall.Builder<T>cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)Sets theCacheHeadersto use for this call.ApolloMutationCall.Builder<T>refetchQueries(java.util.List<com.apollographql.apollo.api.Query> queries)Sets a list ofQueryto be re-fetched once this mutation completed.ApolloMutationCall.Builder<T>refetchQueryNames(java.util.List<com.apollographql.apollo.api.OperationName> operationNames)Sets a list ofApolloQueryWatcherquery names to be re-fetched once this mutation completed.ApolloMutationCall.Builder<T>requestHeaders(RequestHeaders requestHeaders)Sets theRequestHeadersto use for this call.
-
-
-
Method Detail
-
build
@NotNull ApolloMutationCall<T> build()
- Specified by:
buildin interfaceApolloCall.Builder<T>
-
cacheHeaders
@NotNull ApolloMutationCall.Builder<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Description copied from interface:ApolloCall.BuilderSets theCacheHeadersto use for this call.com.apollographql.apollo.interceptor.FetchOptionswill be configured with this headers, and will be accessible from theResponseFetcherused for this call.- Specified by:
cacheHeadersin interfaceApolloCall.Builder<T>- Parameters:
cacheHeaders- theCacheHeadersthat will be passed with records generated from this request toNormalizedCache. Standardized cache headers are defined inApolloCacheHeaders.- Returns:
- The builder
-
refetchQueryNames
@NotNull ApolloMutationCall.Builder<T> refetchQueryNames(@NotNull java.util.List<com.apollographql.apollo.api.OperationName> operationNames)
Sets a list of
ApolloQueryWatcherquery names to be re-fetched once this mutation completed.- Parameters:
operationNames- array ofOperationNamequery names to be re-fetched- Returns:
- The Builder
-
refetchQueries
@NotNull ApolloMutationCall.Builder<T> refetchQueries(@NotNull java.util.List<com.apollographql.apollo.api.Query> queries)
Sets a list of
Queryto be re-fetched once this mutation completed.- Parameters:
queries- array ofQueryto be re-fetched- Returns:
- The Builder
-
requestHeaders
@NotNull ApolloMutationCall.Builder<T> requestHeaders(@NotNull RequestHeaders requestHeaders)
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 Builder
-
-