Skip to content

r.projection(...)

r.projection(definition) — registers a read-side projection driven by events of one or more source entities. Apply functions run inside the event-store’s transaction, so the projection stays consistent with the events that feed it. Apply bodies are opaque code spans keyed by event type.


From packages/framework/src/engine/feature-ast/patterns.ts -> ProjectionPattern