Railway GraphQL Question - getting service names from environments query
Sorry if this is easy to find but I'm not capable of seeing how this can be done, I have the following graphql query
and I want to get the serviceName of the deployed service instance, is there any way to do this without making a subsequent query for each serviceId?
which right now is
ideally ServiceInstance would have
serviceName
in addition to the currently existing serviceId
Solution:Jump to solution
```graphql
query project($id: String!) {
project(id: $id) {
name
services {...
7 Replies
Project ID:
N/A
N/A
Solution
then youd only have to join in code
obviously like you said
serviceInstances
should have a name, but it doesn’t unfortunately, so this is the best i can think ofhmm thanks brody interesting approach here, saves me from doing 3 queries and instead just need to join in the code instead, wasn't aware I could do a project query....would require a refactor of my entire railway action though since it relies on the environments query oof. Thank you
Any way to make the request for adding name to the serviceInstance param?
not until the new year since the team is on a partial vacation
so i can really only involve the team member on call if theres an issue with the platform
fair enough thank you