public static interface AppSyncMutationCall.Factory
AppSyncMutationCall 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
AppSyncMutationCall 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
AppSyncMutationCall call with optimistic updates. |
<D extends com.apollographql.apollo.api.Operation.Data,T,V extends com.apollographql.apollo.api.Operation.Variables> AppSyncMutationCall<T> mutate(@Nonnull com.apollographql.apollo.api.Mutation<D,T,V> mutation)
AppSyncMutationCall call.mutation - the Mutation which needs to be performedAppSyncMutationCall 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> AppSyncMutationCall<T> mutate(@Nonnull com.apollographql.apollo.api.Mutation<D,T,V> mutation, @Nonnull D withOptimisticUpdates)
Creates and prepares a new AppSyncMutationCall call with optimistic updates.
ApolloStore
immediately before mutation execution. Any AppSyncQueryWatcher dependent on the changed cache records will
be re-fetched.mutation - the Mutation which needs to be performedwithOptimisticUpdates - optimistic updates for this mutationAppSyncMutationCall call to be executed at some point in the future