/restcountries-graphql

Get information about countries in a graphql format

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

restcountries-graphql

Build Status

Get information about countries in a graphql format. Based on https://restcountries.eu api. At the moment supports the name endpoint.

Query format:

{
  countries(name: "Fin") {
    name
    callingCodes
    ...
  }
}

Supports the same attributes as the rest endpoint.

Instructions

First

npm install

Run server:

npm run server

Run tests:

npm run test