Skip to content

QueryEventsOptions

API reference for QueryEventsOptions

@delta-base/toolkit


QueryEventsOptions = object

Query parameters for filtering events across streams

optional eventId: string

Filter by specific event ID


optional fromDate: string

Filter by minimum creation date (ISO string)


optional fromPosition: number

Filter by minimum global position


optional includeArchived: boolean

Whether to include archived events


optional includeCount: boolean

Whether to include total count in results


optional limit: number

Maximum number of events to return


optional offset: number

Number of events to skip


optional phase: number

Filter by event phase


optional sortBy: "globalPosition" | "createdAt" | "streamPosition"

Field to sort results by


optional sortDirection: "asc" | "desc"

Direction to sort results


optional streamId: string

Filter by specific stream ID


optional toDate: string

Filter by maximum creation date (ISO string)


optional toPosition: number

Filter by maximum global position


optional transactionId: string

Filter by transaction ID


optional type: string | string[]

Filter by event type(s)