mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
93acd7f00bdcf5125f4c30b1ffb75a93cb3c1e40
Bumps [yarn](https://github.com/yarnpkg/yarn) from 1.17.3 to 1.22.0. - [Release notes](https://github.com/yarnpkg/yarn/releases) - [Changelog](https://github.com/yarnpkg/yarn/blob/master/CHANGELOG.md) - [Commits](https://github.com/yarnpkg/yarn/compare/v1.17.3...v1.22.0) Signed-off-by: dependabot[bot] <support@github.com>
Countries GraphQL API
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:
- The codes used to key the objects in the original data are available as a
codeproperty on each item returned from the API. - The
continentandlanguagesproperties 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
- React
- React Native
- ReasonML
- Country quiz app (React, TypeScript)
- Python
License
Languages
JavaScript
99.6%
Procfile
0.4%