Arguments
onboarding
BooleanList countries which allowed for onboard on Platform.
pageNo
IntThe page number to navigate through the given set of results. Default value is 1.
pageSize
IntThe number of items to retrieve in each page. Default value is 12.
search
StringThis parameter is used to filter or search the records.
Response
items
[CountryDetails]List of countries, each containing detailed information about individual country.
page
PageInfoPagination details for the list of locations, including current page, page size, and total items.
Query
1query countries(2 $onboarding: Boolean3 $pageNo: Int4 $pageSize: Int5 $search: String6) {7 countries(8 onboarding: $onboarding9 pageNo: $pageNo10 pageSize: $pageSize11 search: $search12 ) {13 items {14 display_name15 iso216 iso317 name18 phone_code19 timezones20 id21 latitude22 longitude23 type24 }25 page {26 current27 next_id28 has_previous29 has_next30 item_total31 type32 size33 }34 }35}
Try it
Input Variables
1{2 "onboarding": true,3 "pageNo": 42,4 "pageSize": 42,5 "search": "search"6}
Response
1{2 "countries": {3 "items": [4 {5 "display_name": "display_name",6 "iso2": "iso2",7 "iso3": "iso3",8 "name": "A name",9 "phone_code": "phone_code",10 "timezones": [11 "timezones"12 ],13 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",14 "latitude": "latitude",15 "longitude": "longitude",16 "type": "type"17 }18 ],19 "page": {20 "current": 42,21 "next_id": "next_id",22 "has_previous": true,23 "has_next": true,24 "item_total": 42,25 "type": "type",26 "size": 4227 }28 }29}
Was this section helpful?