2 years ago
Hey! So, I'm automating some deployments on Railway, but I'm stuck trying to get all my account's projects.
Despite of the lack of documentation, with most of the API calls, I basically replicated what's shown in the Network tab (I only changed the Authorization header and the URL path). But, with the "me" query, I'm unable to get the projects.
I tried with the Postman collection you have, uncommenting the "projects" field, adding the fragment and so on, but still no luck.
I know there's also a "projects" query in Postman, but I don't know what should do with the "edges" and "pageInfo" fields, since I couldn't find the query in the Network tab.
Could I get your help, please?
10 Replies
2 years ago
may i ask what is wrong with the dashboard query that the dashboard makes while on the dashboard?
Also tried with the dashboard query (adapted to use graphql/v2 with my auth token, instead of the internal Railway's API that uses my cookies), but this is the response I'm getting:
{
"errors": [
{
"message": "Problem processing request",
"traceId": "325782497962424061"
}
]
}I can send the body as well if needed
2 years ago
fun fact, you can use the internal endpoint with your API token
may I ask why does it work with the internal endpoint, but not the "external" one?
2 years ago
the public endpoint doesn't have a dashboard query, the error responses are just really bad is all, otherwise it would have told you it doesn't exist
2 years ago
but the me query should do the same
2 years ago
sounds good!