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!
Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
competitionId | ID | The championship (e.g. Formula 1) at any spine level — expanded down its subtree. |
sessionType | MotorsportSessionType | Derived session kind — Practice / Qualifying / Sprint / Race. |
status | [MultisportEventStatus!] | — |
dateStart | Date | — |
dateEnd | Date | — |
search | String | Free-text search (min 2 chars) across the session name and its Grand Prix (stage) name. |
limit | Int | — |
offset | Int | — |
orderBy | MotorsportSessionsSortField | — |
orderDir | SortDirection | — |