mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
1e0a915045228aa4f2d107573635ae85709ec07d
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 couple 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.
Check out the playground to explore the schema and test out some queries.
Example
{
country(code: "BR") {
name
native
emoji
currency
languages {
code
name
}
}
}
{
"data": {
"country": {
"name": "Brazil",
"native": "Brasil",
"emoji": "🇧🇷",
"currency": "BRL",
"languages": [
{
"code": "pt",
"name": "Portuguese"
}
]
}
}
}
Languages
JavaScript
99.6%
Procfile
0.4%