- Create a new API token (Account Settings --> Tokens --> New Token)
- Create a new
Functionservice - In the
Variablestab, add a New Variable namedRAILWAY_API_TOKEN, and paste your newly created token as the value - In the
Source Codetab, put the following script:
interface GraphQLResponse<T> {
data?: T;