Moi,
Junien aikatauluissa asemien hakemisessa on ollut tänään ongelmia. Alla yksinkertaistettu kysely:
{
trainsByVersionGreaterThan(
version: "292008240756",
where: { or: [{trainType: {trainCategory: {name: { equals: "Commuter"}}}}]
}) {
timeTableRows {
station { shortCode }
type
}
}
}
Tähän tulee vastauksena:
{
"errors": [
{
"message": "The field at path '/trainsByVersionGreaterThan[1999]/timeTableRows[10]/station' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Station' within parent type 'TimeTableRow'",
"path": [
"trainsByVersionGreaterThan",
1999,
"timeTableRows",
10,
"station"
],
"extensions": {
"classification": "NullValueInNonNullableField"
}
},
Onko aikataulujen asemien suhteen jotain häikkää vai mistä voisi olla kyse? Aiemmin vastaavat kyselyt ovat onnistuneet.