Hi, I’m a new developer, and I’m planning to get all the nearby routes from a specific location. So, this is my query:
query nearbyRoutes($lat: Float!, $lon: Float!) {
stopsByRadius(lat: $lat, lon: $lon, radius: 500){
edges {
node {
stop {
routes {
longName
gtfsId
}
}
}
}
}
}
When I console log my data, I have to go through numerous data types before I get to the route name, how do I just skip to that? I am using javascript. Thanks.