Trevor Blades 71f26cf2a1 Create LICENSE
2019-05-30 15:47:29 -07:00
2019-02-13 12:43:06 -08:00
2018-10-11 00:06:53 -04:00
2018-10-12 00:02:00 -04:00
2018-11-20 11:56:00 -08:00
2019-01-09 14:46:20 +09:00
2019-05-30 15:47:29 -07:00
2018-10-11 13:18:53 -04:00
2019-03-03 18:45:07 -08:00
2019-01-09 14:41:26 +09:00

globe

Countries GraphQL API

Build Status Donate

A public GraphQL API for information about countries, continents, and languages. This project uses Countries List as a data source, so the schema follows the shape of that data, with a few exceptions:

  1. The codes used to key the objects in the original data are available as a code property on each item returned from the API.
  2. The continent and languages properties are now objects and arrays of objects, respectively.

Writing queries

{
  country(code: "BR") {
    name
    native
    emoji
    currency
    languages {
      code
      name
    }
  }
}

The above GraphQL query will produce the following JSON response:

{
  "data": {
    "country": {
      "name": "Brazil",
      "native": "Brasil",
      "emoji": "🇧🇷",
      "currency": "BRL",
      "languages": [
        {
          "code": "pt",
          "name": "Portuguese"
        }
      ]
    }
  }
}

Check out the playground to explore the schema and test out some queries.

Examples

Description
No description provided
Readme MIT 1.9 MiB
Languages
JavaScript 99.6%
Procfile 0.4%