Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1 KB

README.md

File metadata and controls

43 lines (30 loc) · 1 KB

Covid GraphQL API

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.

Installation

  • Run yarn
  • Run yarn start

Usage example

Go to http://localhost:3000/playground (optional: set the port on enviromnent variables )

{
  countries {
    id
    name
    cases
    todayCases
    deaths
    todayDeaths
    recovered
    active

  }
}

Voyager

You can see GraphQL API as an interactive graph http://localhost:3000/voyager (optional: set the port on enviromnent variables )

Todo

  • Order by cases

Data source

The used API to extract data was developed by WorldOMeters