eventFlowProjection()
Creates an event flow projection.
Import
Section titled “Import”import { eventFlowProjection } from "@graphrefly/ts/patterns/event-flow";Signature
Section titled “Signature”function eventFlowProjection( graph: Graph, flowOrRecords: EventFlowBundle<TPayload> | Node<EventFlowRecord<TPayload>>, opts: EventFlowProjectionOptions<TState, TPayload>,): EventFlowProjectionBundle<TState>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
flowOrRecords | EventFlowBundle<TPayload> | Node<EventFlowRecord<TPayload>> | flow or records value used by the helper. |
opts | EventFlowProjectionOptions<TState, TPayload> | Options that configure the helper. |
Returns
Section titled “Returns”The event flow projection result.
Example
Section titled “Example”import { eventFlowProjection } from "@graphrefly/ts/patterns/event-flow";Source
Section titled “Source”packages/ts/src/patterns/event-flow.ts