Kuulostaa siltä, että haet aina kerralla koko päivän kokoonpanot, mikä ei välttämättä ole datan siirron kannalta fiksua. GraphQL taipuu jo suht hyvin tuohon suodatukseen:
{
viewer {
getCompositionsByDepartureDateUsingGET(departure_date: "2019-08-21", where: "[*trainCategory=Long-distance]") {
trainNumber
trainCategory
trainType
journeySections {
beginTimeTableRow {
countryCode
scheduledTime
stationShortCode
stationUICCode
type
}
endTimeTableRow {
countryCode
scheduledTime
stationShortCode
stationUICCode
type
}
}
}
}
}