Relate

Interface: ActionContext<G, A>

Defined in: packages/relate/src/actions.ts:126

Type Parameters

Type Parameter
G extends GraphDefinition
A extends ActionDefinition

Properties

PropertyModifierTypeDescriptionDefined in
actorreadonly{ claims: Readonly<Record<string, string | number | boolean | null>>; id: string; roles: readonly string[]; }-packages/relate/src/actions.ts:137
actor.claimsreadonlyReadonly<Record<string, string | number | boolean | null>>-packages/relate/src/actions.ts:140
actor.idreadonlystring-packages/relate/src/actions.ts:138
actor.rolesreadonlyreadonly string[]-packages/relate/src/actions.ts:139
failreadonly(...args) => neverAborts this invocation and rolls back native writes, even if caught by the handler.packages/relate/src/actions.ts:144
idempotencyIdreadonlystringThe caller's idempotency key scoped to this graph instance, actor and action: stable across retries, rollback and restart, but distinct when another actor or action reuses the same key. Forward it to an external operation journal or provider idempotency API instead of the raw key. This identity alone does not make external writes atomic or deduplicate them.packages/relate/src/actions.ts:136
inputreadonlyPortableValue<output<A["input"]>>-packages/relate/src/actions.ts:142
objectsreadonly{ readonly [K in string | number | symbol]: { get: any; query: any } & (G["objects"][K] extends A["creates"][number] ? { create: any } : {}) & (G["objects"][K] extends A["adopts"][number] ? { adopt: any } : {}) }-packages/relate/src/actions.ts:153

On this page