allCountries
Overview
Get list of all countries - for citizenship purposes.
Special Considerations
None.
Inputs
None.
Returns
Promise<PrivateCountry>
Returns a promise containing the following array of data (for each country):
PublicCountry: {
name: Name (string)
code: Code (string)
}
Example
Running this query:
query {
allCountries {
name
code
}
}
Gives us:
{
"data": {
"allCountries": [
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Aland Islands",
"code": "AX"
},
{
"name": "Albania",
"code": "AL"
},
...
{
"name": "Zimbabwe",
"code": "ZW"
}
]
}
}
Common Errors
N/A