Skip to main content

Get Cities

Overview

The section describes how to obtain a list of available cities for a given specialty.

Query

token is not required - Authorization

query getCitiesQuery (
$specializationId: String!,
$insurerId: String!
) {
cities(
specializationId: $specializationId,
insurerId: $insurerId
) {
edges {
node {
_id
name
}
}
}
}

Response

{
"edges": [
{
"node": {
"_id": "bydgoszcz",
"name": "Bydgoszcz",
"__typename": "City"
},
"__typename": "CityEdge"
},
],
"__typename": "CityConnection"
}