QueryEventsOptions
API reference for QueryEventsOptions
Type Alias: QueryEventsOptions
Section titled “Type Alias: QueryEventsOptions”QueryEventsOptions =
object
Query parameters for filtering events across streams
Properties
Section titled “Properties”eventId?
Section titled “eventId?”
optionaleventId:string
Filter by specific event ID
fromDate?
Section titled “fromDate?”
optionalfromDate:string
Filter by minimum creation date (ISO string)
fromPosition?
Section titled “fromPosition?”
optionalfromPosition:number
Filter by minimum global position
includeArchived?
Section titled “includeArchived?”
optionalincludeArchived:boolean
Whether to include archived events
includeCount?
Section titled “includeCount?”
optionalincludeCount:boolean
Whether to include total count in results
limit?
Section titled “limit?”
optionallimit:number
Maximum number of events to return
offset?
Section titled “offset?”
optionaloffset:number
Number of events to skip
phase?
Section titled “phase?”
optionalphase:number
Filter by event phase
sortBy?
Section titled “sortBy?”
optionalsortBy:"globalPosition"|"createdAt"|"streamPosition"
Field to sort results by
sortDirection?
Section titled “sortDirection?”
optionalsortDirection:"asc"|"desc"
Direction to sort results
streamId?
Section titled “streamId?”
optionalstreamId:string
Filter by specific stream ID
toDate?
Section titled “toDate?”
optionaltoDate:string
Filter by maximum creation date (ISO string)
toPosition?
Section titled “toPosition?”
optionaltoPosition:number
Filter by maximum global position
transactionId?
Section titled “transactionId?”
optionaltransactionId:string
Filter by transaction ID
optionaltype:string|string[]
Filter by event type(s)