GraphQL change

26 views
Skip to first unread message

rata.digitraffic.fi

unread,
May 9, 2025, 8:38:16 AMMay 9
to rata.digitraffic.fi
Hello!

We are making some changes to GraphQL-api.  All lists fields and return types will be Non-null.  This will also change the returned data, before the lists might have been null, but now they will be changed to empty lists(when there is no data).

This is currently in beta, so I urge you to test your graphql-queries in beta.  We are planning to update production in a couple of weeks.

For example, the following query:

 trainsByDepartureDate(departureDate: "2024-01-01") {
                        trainNumber
                        version
                        timeTableRows(where: {unknownDelay: {equals: true}}) {
                            actualTime,
                            station {
                                shortCode
                            }
                        }
                    }
                }

In production it returns:

"trainsByDepartureDate": [
      {
        "trainNumber": 1,
        "version": "287293186071",
        "timeTableRows": null
      },

In beta it returns:
"trainsByDepartureDate": [
      {
        "trainNumber": 1,
        "version": "289234858811",
        "timeTableRows": []
      },


If you encounter any problems or get errors, please report them here.

Ystävällisin terveisin / Best regards
– Digitraffic asiakastuki / Digitraffic support –

rata.digitraffic.fi

unread,
May 20, 2025, 5:25:35 AMMay 20
to rata.digitraffic.fi
Hello

This is now deployed to production as well.

Ystävällisin terveisin / Best regards
– Digitraffic asiakastuki / Digitraffic support –

Reply all
Reply to author
Forward
0 new messages