get single doctor
POST
http://localhost:3000/graphqlQuery
query FindDoctorById($findDoctorByIdId: Float!) {
findDoctorById(id: $findDoctorByIdId) {
id
username
services
speciality
facility_type
facility_name
facility_location
default_fee
average_consulting_time
timings {
day
from
to
}
}
}
Variables
{
"findDoctorByIdId": 2
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"findDoctorById": {
"id": 2,
"username": "ravi",
"services": [
"consulting",
"headache pain reflect"
],
"speciality": [
"neurology"
],
"facility_type": "clinic",
"facility_name": "ravi clinic",
"facility_location": "AP",
"default_fee": 250,
"average_consulting_time": "00:30:00",
"timings": [
{
"day": "monday",
"from": "09:00:00",
"to": "17:00:00"
},
{
"day": "tuesday",
"from": "09:00:00",
"to": "17:00:00"
},
{
"day": "wednesday",
"from": "09:00:00",
"to": "17:00:00"
},
{
"day": "thursday",
"from": "09:00:00",
"to": "17:00:00"
},
{
"day": "friday",
"from": "09:00:00",
"to": "17:00:00"
},
{
"day": "saturday",
"from": "09:00:00",
"to": "17:00:00"
}
]
}
}
}
Last modified: 2 months ago