Skip to content

motorsportSessions

Query

All motorsport sessions — the operator list/browse surface (POD-517). Defaults to most-recent-first; pass dateStart/dateEnd (sargable calendar-day range) + orderDir: asc for a forward window (e.g. the dashboard’s coming-up/live).

POD-840: returns MotorsportSessionsResult (was a bare list) and accepts the full filter set, so the operator list filters server-side like footballMatches / tennisMatches rather than over the fetched page. sessionType is served here too — it is the F1 list’s own filter axis.

NOTE motorsport_sessions.scheduled_time is NULLABLE (migration 178) — the only contest table where it is. A dateStart/dateEnd window therefore excludes unscheduled sessions by construction, and the default ordering puts them last (NULLS LAST). That is the pre-existing behaviour of this field and is left unchanged; liveMotorsportSessions is the field that COALESCEs to created_at.

Returns: MotorsportSessionsResult!

NameTypeDescription
competitionIdIDThe championship (e.g. Formula 1) at any spine level — expanded down its subtree.
sessionTypeMotorsportSessionTypeDerived session kind — Practice / Qualifying / Sprint / Race.
status[MultisportEventStatus!]—
dateStartDate—
dateEndDate—
searchStringFree-text search (min 2 chars) across the session name and its Grand Prix (stage) name.
limitInt—
offsetInt—
orderByMotorsportSessionsSortField—
orderDirSortDirection—