Interface ApolloMutationCall<T>

    • Method Detail

      • cacheHeaders

        @Deprecated
        @NotNull
        ApolloMutationCall<T> cacheHeaders​(@NotNull
                                           com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
        Deprecated.
        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. Deprecated, use toBuilder() to mutate the ApolloCall
        Specified by:
        cacheHeaders in interface ApolloCall<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 ApolloCall object with the provided CacheHeaders.
      • refetchQueries

        @Deprecated
        @NotNull
        ApolloMutationCall<T> refetchQueries​(@NotNull
                                             com.apollographql.apollo.api.OperationName... operationNames)
        Deprecated.

        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:
        ApolloMutationCall that will trigger re-fetching provided queries
      • refetchQueries

        @Deprecated
        @NotNull
        ApolloMutationCall<T> refetchQueries​(@NotNull
                                             com.apollographql.apollo.api.Query... queries)
        Deprecated.

        Sets a list of Query to be re-fetched once this mutation completed.

        Parameters:
        queries - array of Query to be re-fetched
        Returns:
        ApolloMutationCall that will trigger re-fetching provided queries
      • requestHeaders

        @Deprecated
        @NotNull
        ApolloMutationCall<T> requestHeaders​(@NotNull
                                             RequestHeaders requestHeaders)
        Deprecated.
        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 ApolloCall object with the provided RequestHeaders.
      • clone

        @Deprecated
        @NotNull
        ApolloMutationCall<T> clone()
        Deprecated.
        Description copied from interface: ApolloCall
        Creates a new, identical call to this one which can be enqueued or executed even if this call has already been. Deprecated, use ApolloCall.toBuilder() to mutate the ApolloCall
        Specified by:
        clone in interface ApolloCall<T>
        Returns:
        The cloned ApolloCall object.