Skip to main content

Get Medical Facilities

Overview

The section describes how to obtain a list of available medical facilities for a given city.

Query

token is not required - Authorization

query getMedicalFacilitiesQuery(
$insurerId: String!,
$cityId: String
) {
medicalFacilities(
insurerId: $insurerId,
cityId: $cityId
) {
edges {
node {
_id
name
}
}
}
}

Response

{
"edges": [
{
"node": {
"_id": "4e726ff1-42db-41a6-aab6-05e84085293d",
"name": "Przychodnia24",
"__typename": "MedicalFacility"
},
"__typename": "MedicalFacilityEdge"
},
],
"__typename": "MedicalFacilityConnection"
}