Interface ApolloMutationCall.Builder<T>

    • Method Detail

      • cacheHeaders

        @NotNull
        ApolloMutationCall.Builder<T> cacheHeaders​(@NotNull
                                                   com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
        Description copied from interface: ApolloCall.Builder
        Sets the CacheHeaders 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.
        Specified by:
        cacheHeaders in interface ApolloCall.Builder<T>
        Parameters:
        cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are defined in ApolloCacheHeaders.
        Returns:
        The builder
      • refetchQueryNames

        @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.

        Parameters:
        operationNames - array of OperationName query 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 Query to be re-fetched once this mutation completed.

        Parameters:
        queries - array of Query to be re-fetched
        Returns:
        The Builder
      • requestHeaders

        @NotNull
        ApolloMutationCall.Builder<T> requestHeaders​(@NotNull
                                                     RequestHeaders requestHeaders)
        Sets the 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.
        Parameters:
        requestHeaders - The RequestHeaders to use for this request.
        Returns:
        The Builder