rlindskog / covid19-graphql Goto Github PK
View Code? Open in Web Editor NEWCOVID-19 GraphQL API
Home Page: https://covid19-graphql.now.sh/
License: MIT License
COVID-19 GraphQL API
Home Page: https://covid19-graphql.now.sh/
License: MIT License
query {
province(name: "Washington") {
confirmed
country {
name
}
}
country(name: "US") {
# array of provinces for given country
provinces {
confirmed
}
}
}
Also, add provinces
option to results
.
Pending:
pomber/covid19#9
Can you please add country codes and/or lat-long
Hello!
I need different time format for date (like. 2020-01-01). Can you help me with that?
I don't have experience with GraphQL but I want dive in, so if you help me with schema, I will try do my best
I'm getting an error while using this api.
I used apollo to do the querying.
import ApolloClient from 'apollo-boost';
import {gql} from 'apollo-boost';
const client = new ApolloClient({
uri: 'https://covid19-graphql.now.sh/',
});
client
.query({
query: gql`
country (name: "India") {
name
}
`
})
.then(result => console.log(result));
This is the code I used.
The following is the error I get with react:
uncaught exception: Syntax Error: Unexpected Name "country"
GraphQL request:2:5
1 |
2 | country (name: "India") {
| ^
3 | name
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.