{"id":20777255,"url":"https://github.com/sharadcodes/covid19-graphql","last_synced_at":"2025-04-30T18:28:14.701Z","repository":{"id":42523562,"uuid":"249168570","full_name":"sharadcodes/covid19-graphql","owner":"sharadcodes","description":"COVID19 Graphql Server","archived":false,"fork":false,"pushed_at":"2023-02-13T07:19:02.000Z","size":82,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T18:51:08.333Z","etag":null,"topics":["coronavirus","covid-19","covid-api","covid-data","covid19","covid19-graphql","covid19graphql","graphql","graphql-api","graphql-server"],"latest_commit_sha":null,"homepage":"https://sharad-gql-covid19.herokuapp.com/graphql","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharadcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-22T11:25:40.000Z","updated_at":"2025-03-02T18:43:58.000Z","dependencies_parsed_at":"2023-02-18T03:40:15.094Z","dependency_job_id":null,"html_url":"https://github.com/sharadcodes/covid19-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharadcodes%2Fcovid19-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharadcodes%2Fcovid19-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharadcodes%2Fcovid19-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharadcodes%2Fcovid19-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharadcodes","download_url":"https://codeload.github.com/sharadcodes/covid19-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251759931,"owners_count":21639315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coronavirus","covid-19","covid-api","covid-data","covid19","covid19-graphql","covid19graphql","graphql","graphql-api","graphql-server"],"created_at":"2024-11-17T13:14:40.100Z","updated_at":"2025-04-30T18:28:14.649Z","avatar_url":"https://github.com/sharadcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COVID19-Graphql\nBy sharadcodes\n\nGOTO: https://sharad-gql-covid19.herokuapp.com/graphql\n\n## HOW TO USE\n\n**Example using fetch**\n\n```js\nfetch(\n\"https://sharad-gql-covid19.herokuapp.com/graphql\",\n{\nmethod: \"POST\",\nheaders: { \"Content-Type\": \"application/json\" },\nbody: JSON.stringify({\nquery: `{\n            countries {\n                country    \n                countryInfo {\n                  lat\n                  long\n                }\n                cases\n                todayCases\n                deaths\n                todayDeaths\n                recovered\n                active\n                critical\n                casesPerOneMillion\n                deathsPerOneMillion\n            } \n        }\n`\n})\n}\n)\n.then(res =\u003e res.json())\n.then(res =\u003e console.log(res.data));\n```\n## FOR SORTING DATA\n\nUse `sortBy` followed by the key name and `order` folowed by either `desc` or `aesc`. \n\n`sortBy` is `cases` by default \u0026 `order` is `desc` by default.\n\n```js\nfetch(\n\"https://sharad-gql-covid19.herokuapp.com/graphql\",\n{\nmethod: \"POST\",\nheaders: { \"Content-Type\": \"application/json\" },\nbody: JSON.stringify({\nquery: `{\n              countries(sortBy: \"cases\", order: \"desc\") {\n                country\n                countryInfo {\n                  lat\n                  long\n                }                \n                cases\n                todayCases\n                deaths\n                todayDeaths\n                recovered\n                active\n                critical\n                casesPerOneMillion\n                deathsPerOneMillion\n              }\n        }\n`\n})\n}\n)\n.then(res =\u003e res.json())\n.then(res =\u003e console.log(res.data));\n```\n\n## SHOWCASE\n\n| Project  | Github Repo | Live Demo |\n| -------- |  ----------  | --------- |\n| COVIDLIVE | https://github.com/giacomoalonzi/covidlive.it | https://covidlive.it/ |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharadcodes%2Fcovid19-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharadcodes%2Fcovid19-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharadcodes%2Fcovid19-graphql/lists"}