Get all chat
POST
http://localhost:3000/graphqlQuery
query GetChatMessages($patientUserId: Float!, $doctorUserId: Float!) {
getChatMessages(patient_user_id: $patientUserId, doctor_user_id: $doctorUserId) {
chat_id
patient_user_id
doctor_user_id
type
message
}
}
Variables
{
"patientUserId": 2,
"doctorUserId": 1
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"getChatMessages": [
{
"chat_id": 2,
"patient_user_id": 2,
"doctor_user_id": 1,
"type": "Medicine intake",
"message": "no"
},
{
"chat_id": 3,
"patient_user_id": 2,
"doctor_user_id": 1,
"type": "Medicine intake",
"message": "Can i take two medicines at a time"
}
]
}
}
Last modified: 2 months ago