FakeMutationKey

class FakeMutationKey<T, S>(target: MutationKey<T, S>, mock: FakeMutationMutate<T, S>) : MutationKey<T, S>

Creates a fake mutation key that returns the result of the given mock function.

Constructors

Link copied to clipboard
constructor(target: MutationKey<T, S>, mock: FakeMutationMutate<T, S>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: MutationId<T, S>
Link copied to clipboard
open override val mutate: suspend MutationReceiver.(variable: S) -> T

Functions

Link copied to clipboard
Link copied to clipboard
open override fun onQueryUpdate(variable: S, data: T): QueryEffect?