MutationPreviewClient

class MutationPreviewClient(previewData: Map<UniqueId, MutationState<*>>, val defaultMutationOptions: MutationOptions = MutationOptions) : MutationClient

Usage:

val mutationClient = MutationPreviewClient {
on(MyMutationId1) { MutationState.success("data") }
on(MyMutationId2) { .. }
}

Constructors

Link copied to clipboard
constructor(previewData: Map<UniqueId, MutationState<*>>, defaultMutationOptions: MutationOptions = MutationOptions)

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T, S> getMutation(key: MutationKey<T, S>, marker: Marker): MutationRef<T, S>