Skip to main content

Countries

Get a list of countries.

Arguments​

NameDescription
filter (CountryFilterInput)Country filter arguments
pagination (PaginationInput)Pagination input arguments

Return Type​

CountryConnection!

Sample Query​

Find countries with filter and page
{
countries(
filter: { subregion: South_Eastern_Asia }
page: { first: 5, after: "eyJjdXJzb3IiOjE1Mn0" }
) {
totalCount
edges {
cursor
node {
id
name
iso3
emoji
}
}
pageInfo {
hasNextPage
hasPreviousPage
endCursor
startCursor
}
}
}

Sample Response​

{
"data": {
"countries": {
"totalCount": 4,
"edges": [
{
"cursor": "eyJjdXJzb3IiOjE3NX0=",
"node": {
"id": 175,
"name": "Philippines",
"iso3": "PHL",
"emoji": "πŸ‡΅πŸ‡­"
}
},
{
"cursor": "eyJjdXJzb3IiOjIwMH0=",
"node": {
"id": 200,
"name": "Singapore",
"iso3": "SGP",
"emoji": "πŸ‡ΈπŸ‡¬"
}
},
{
"cursor": "eyJjdXJzb3IiOjIyMn0=",
"node": {
"id": 222,
"name": "Thailand",
"iso3": "THA",
"emoji": "πŸ‡ΉπŸ‡­"
}
},
{
"cursor": "eyJjdXJzb3IiOjI0M30=",
"node": {
"id": 243,
"name": "Vietnam",
"iso3": "VNM",
"emoji": "πŸ‡»πŸ‡³"
}
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": true,
"endCursor": "eyJjdXJzb3IiOjI0M30=",
"startCursor": "eyJjdXJzb3IiOjE3NX0="
}
}
}
}