EventCursorSelector
Defined in: runtime/selector.ts:133
Selector for querying events. Events are immutable, so there is no write variant. This selector is only available in system/sudo context.
Events are queried by structured fields only - payload filtering is not supported.
Extends
Section titled “Extends”CursorSelector<TEvent>
Type Parameters
Section titled “Type Parameters”TEvent
Section titled “TEvent”TEvent
Methods
Section titled “Methods”after()
Section titled “after()”after(
date):this
Defined in: runtime/selector.ts:138
Filter by the timestamp the event was created. Only events created after the supplied date will be returned.
Parameters
Section titled “Parameters”number | Date | DateTime<boolean>
Returns
Section titled “Returns”this
before()
Section titled “before()”before(
date):this
Defined in: runtime/selector.ts:144
Filter by the timestamp the event was created. Only events created before the supplied date will be returned.
Parameters
Section titled “Parameters”number | Date | DateTime<boolean>
Returns
Section titled “Returns”this
cursor()
Section titled “cursor()”cursor(
value):this
Defined in: runtime/selector.ts:57
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”debug()
Section titled “debug()”debug():
this
Defined in: runtime/selector.ts:149
Enables debug mode for the selector.
Returns
Section titled “Returns”this
execute()
Section titled “execute()”execute():
CursorSelectorResult<TEvent>
Defined in: runtime/selector.ts:58
Returns
Section titled “Returns”CursorSelectorResult<TEvent>
Inherited from
Section titled “Inherited from”first()
Section titled “first()”first():
Promise<TEvent|undefined>
Defined in: runtime/selector.ts:59
Returns
Section titled “Returns”Promise<TEvent | undefined>
Inherited from
Section titled “Inherited from”itemId()
Section titled “itemId()”itemId(
id):this
Defined in: runtime/selector.ts:154
Filter by the item targeted by the event.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
iterator()
Section titled “iterator()”iterator():
AsyncGenerator<TEvent,void,undefined>
Defined in: runtime/selector.ts:60
Returns
Section titled “Returns”AsyncGenerator<TEvent, void, undefined>
Inherited from
Section titled “Inherited from”limit()
Section titled “limit()”limit(
value):this
Defined in: runtime/selector.ts:61
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”parentEvent()
Section titled “parentEvent()”parentEvent(
id):this
Defined in: runtime/selector.ts:159
Filter by the parent event (the event that triggered this event).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
prn(
prn):this
Defined in: runtime/selector.ts:164
Filter by event PRN (the event type/topic as defined in the schema).
Parameters
Section titled “Parameters”string | string[]
Returns
Section titled “Returns”this
rootParent()
Section titled “rootParent()”rootParent(
id):this
Defined in: runtime/selector.ts:169
Filter by the root parent event (top-level event in the trace).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
traceId()
Section titled “traceId()”traceId(
id):this
Defined in: runtime/selector.ts:174
Filter by trace ID for correlation.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this