Playing with GraphQL and COVID-19 API! Checkout the related COVID-19 Tracker for India.
npm install && npm start
Open terminal and run npm install
Run npm start
Open browser and go to http://localhost:8080/graphql
Type the queries and enjoy!
Run npm run server
for local development
GET
overall COVID-19 stats{
total {
active
confirmed
deaths
recovered
}
}
GET
statewise COVID-19 stats{
statewise {
state
active
confirmed
deaths
recovered
}
}
GET
datewise COVID-19 stats{
datewise {
date
dailyconfirmed
dailydeceased
dailyrecovered
}
}
graphql: The JavaScript reference implementation for GraphQL
express-graphql: A GraphQL HTTP Server middleware
< />
with ♡ byCheck out @vinitshahdeo/COVID19 repository. Consider leaving a star!
if (_.isAwesome(thisRepo)) {
thisRepo.star(); // thanks in advance :p
}