GraphQL API for current cases about COVID-19 worldwide.
- This project is a Concept Proof to test graphql usage in Typescript.
- I used TypeORM to map the objects and TypegraqhQL to facilitate the manipulation of the schemas.
- All communication with this API is done by Apollo Server.
- Run
yarn
- Run
yarn start
Go to http://localhost:3000/playground
(optional: set the port on enviromnent variables )
{
countries {
id
name
cases
todayCases
deaths
todayDeaths
recovered
active
}
}
You can see GraphQL API as an interactive graph http://localhost:3000/voyager
(optional: set the port on enviromnent variables )
- Order by cases
The used API to extract data was developed by WorldOMeters