Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GraphQL stops query for child_stops throws error when parent_station column not exists #217

Closed
landonreed opened this issue Apr 4, 2019 · 1 comment · Fixed by #218
Closed
Labels

Comments

@landonreed
Copy link
Contributor

landonreed commented Apr 4, 2019

Observed behavior

When making a GraphQL query for stops with nested child_stops, the query hits an error if the column does not exist in the stops table.

Expected behavior

There should not be an error thrown when the parent_station field does not exist.

Steps to reproduce the problem

Load a gtfs file with a stops file that has no parent_station column (e.g. sfmta). Run GraphQLMain and make the following query (be sure to include namespace variable).

query stopsQuery(
  $namespace: String
) {
  feed (namespace: $namespace) {
    stops {
      stop_id
      stop_name
      parent_station
      child_stops {
        stop_id
        stop_name
      }
    }
  }
}

Notes on configuration and files required to reproduce the issue

N/A

@landonreed
Copy link
Contributor Author

🎉 This issue has been resolved in version 4.3.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant