MutationPreviewClient
class MutationPreviewClient(previewData: Map<UniqueId, MutationState<*>>, val defaultMutationOptions: MutationOptions = MutationOptions) : MutationClient
Usage:
val mutationClient = MutationPreviewClient {
on(MyMutationId1) { MutationState.success("data") }
on(MyMutationId2) { .. }
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(previewData: Map<UniqueId, MutationState<*>>, defaultMutationOptions: MutationOptions = MutationOptions)
Types
Link copied to clipboard
class Builder
Builder for MutationPreviewClient.