public static interface ApolloMutationCall.Builder<T> extends ApolloCall.Builder<T>
| Modifier and Type | Method and Description |
|---|---|
ApolloMutationCall<T> |
build() |
ApolloMutationCall.Builder<T> |
cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Sets the
CacheHeaders to use for this call. |
ApolloMutationCall.Builder<T> |
refetchQueries(java.util.List<com.apollographql.apollo.api.Query> queries)
Sets a list of
Query to be re-fetched once this mutation completed. |
ApolloMutationCall.Builder<T> |
refetchQueryNames(java.util.List<com.apollographql.apollo.api.OperationName> operationNames)
Sets a list of
ApolloQueryWatcher query names to be re-fetched once this mutation completed. |
ApolloMutationCall.Builder<T> |
requestHeaders(RequestHeaders requestHeaders)
Sets the
RequestHeaders to use for this call. |
@NotNull ApolloMutationCall<T> build()
build in interface ApolloCall.Builder<T>@NotNull ApolloMutationCall.Builder<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
ApolloCall.BuilderCacheHeaders 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.Builder<T>cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are
defined in ApolloCacheHeaders.@NotNull ApolloMutationCall.Builder<T> refetchQueryNames(@NotNull java.util.List<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-fetched@NotNull ApolloMutationCall.Builder<T> refetchQueries(@NotNull java.util.List<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-fetched@NotNull ApolloMutationCall.Builder<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.