get single patient details
POST
http://localhost:3000/graphqlQuery
query GetPatientByUserId($userId: Float!) {
getPatientByUserId(user_id: $userId) {
age
blood_group
health_issues
id
username
weight
}
}
Variables
{
"userId": 4
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"getPatientByUserId": {
"age": 30,
"blood_group": "A",
"health_issues": [
"Asthama"
],
"id": 4,
"username": "olauber2",
"weight": 57
}
}
}
Last modified: 2 months ago