https://github.com/staylor/mta-graphql
https://github.com/staylor/mta-graphql
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/staylor/mta-graphql
- Owner: staylor
- Created: 2018-06-25T16:55:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-25T17:02:02.000Z (almost 8 years ago)
- Last Synced: 2025-01-28T21:18:23.109Z (over 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mta-graphql
To install:
```
yarn --ignore-engines
```
Add a `.env` file with values set for `SERVER_PORT` and `MTA_API_KEY`
To run GraphQL:
```
yarn dev
```
Use GraphiQL to inspect your data - this links to a sample query: [local query](http://localhost:8080/graphiql?query=%7B%0A%20%20departures(complexId%3A%20625)%20%7B%0A%20%20%20%20complexId%0A%20%20%20%20name%0A%20%20%20%20lines%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20departures%20%7B%0A%20%20%20%20%20%20%20%20S%20%7B%0A%20%20%20%20%20%20%20%20%20%20routeId%0A%20%20%20%20%20%20%20%20%20%20time%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20N%20%7B%0A%20%20%20%20%20%20%20%20%20%20routeId%0A%20%20%20%20%20%20%20%20%20%20time%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A).