Skip to content

Documentation / @etherfold/processor-entities / Mutation

Type Alias: Mutation ​

Mutation = { entity: string; id: EntityId; type: "upsert"; values: Record<string, unknown>; } | { entity: string; id: EntityId; type: "delete"; }

Defined in: packages/state-store/dist/types.d.ts:149

What a processor produced for one block.

An upsert closes the live version and opens a new one; a delete is only the close, so the entity is absent from that block onward while remaining fully readable as of any earlier block.