zoneCodes
Overview
Query returns zone codes for the country the current account is enabled in.
Special Considerations
- This query takes no input.
Inputs
N/A
Returns
Promise<ZoneCode[]>
Returns a promise containing the following array of data (for each zone):
ZoneCode: {
code: string
name: string
country: COUNTRY
}
Example
Running this query:
query {
zoneCodes {
code
name
}
}
Gives us:
{
"data": {
"zoneCodes": [
{
"code": "AK",
"name": "Alaska",
},
{
"code": "AL",
"name": "Alabama",
},
{
"code": "AR",
"name": "Arkansas",
},
...
]
}
}
Common Errors
N/A