Skip to content

API reference > @kontsedal/olas-core > MutationHost

MutationHost type ​

Runs mutations registered with defineMutation, with no controller involved.

Signature:

typescript
type MutationHost = {
  has(id: string): boolean;
  get(id: string): MutationRef | undefined;
  run(id: string, variables: unknown): Promise<unknown>;
};

References: MutationRef

Released under the MIT License.