API reference > @kontsedal/olas-core > MutationDefinition
MutationDefinition type
The half of a mutation that describes the write itself, fordefineMutation: its identity, the write, and its policy. Lifecycle hooks are not part of it. They belong to the controller that runs the mutation and go to createMutation(ctx, def, hooks).
Signature:
typescript
type MutationDefinition<V, R> = Pick<MutationSpec<V, R>, 'mutate' | 'concurrency' | 'retry' | 'retryDelay' | 'meta'> & {
id: string;
};References: MutationSpec