public static interface ApolloMutationCall.Factory
ApolloMutationCall
calls.Modifier and Type | Method and Description |
---|---|
<D extends com.apollographql.apollo.api.Operation.Data,T,V extends com.apollographql.apollo.api.Operation.Variables> |
mutate(com.apollographql.apollo.api.Mutation<D,T,V> mutation)
Creates and prepares a new
ApolloMutationCall call. |
<D extends com.apollographql.apollo.api.Operation.Data,T,V extends com.apollographql.apollo.api.Operation.Variables> |
mutate(com.apollographql.apollo.api.Mutation<D,T,V> mutation,
D withOptimisticUpdates)
Creates and prepares a new
ApolloMutationCall call with optimistic updates. |
<D extends com.apollographql.apollo.api.Operation.Data,T,V extends com.apollographql.apollo.api.Operation.Variables> ApolloMutationCall<T> mutate(@NotNull com.apollographql.apollo.api.Mutation<D,T,V> mutation)
ApolloMutationCall
call.mutation
- the Mutation
which needs to be performedApolloMutationCall
call to be executed at some point in the future<D extends com.apollographql.apollo.api.Operation.Data,T,V extends com.apollographql.apollo.api.Operation.Variables> ApolloMutationCall<T> mutate(@NotNull com.apollographql.apollo.api.Mutation<D,T,V> mutation, @NotNull D withOptimisticUpdates)
Creates and prepares a new ApolloMutationCall
call with optimistic updates.
ApolloStore
immediately before mutation execution. Any ApolloQueryWatcher
dependent on the changed cache records will
be re-fetched.mutation
- the Mutation
which needs to be performedwithOptimisticUpdates
- optimistic updates for this mutationApolloMutationCall
call to be executed at some point in the future