Giter Site home page Giter Site logo

covid19-graphql's People

Contributors

dependabot[bot] avatar jeetiss avatar msbit avatar neniemsu avatar rickkln avatar rlindskog avatar soround avatar unpolaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

covid19-graphql's Issues

Add support for states and provinces

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

Add CORS

Hello again 👋🏻

I can't use fetch without 'Access-Control-Allow-Origin' header
Снимок экрана 2020-03-18 в 21 40 46

Add more stats

  • Cases / death per capita
  • Growth Factor
  • Country flag emojii
  • Country codes, (in queries as well)
  • Average age of location
  • Age and sex distribution of cases
  • Other data? (Number of masks, respirators, gowns, etc.)

change date format with GraphQL

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

uncaught exception: Syntax Error: Unexpected Name "country" GraphQL request:2:5

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.