Chat Subscription
DevelopingGET
http://localhost:3000/graphqlSubscription
subscription NewMessage($patientUserId: Float!, $doctorUserId: Float!) {
newMessage(patient_user_id: $patientUserId, doctor_user_id: $doctorUserId) {
chat_id
doctor_user_id
message
patient_user_id
type
}
}
Variables
{
"patientUserId": 3,
"doctorUserId": 2
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
ExampleSubscription Chat Response
{
"data": {
"newMessage": {
"chat_id": 1,
"doctor_user_id": 2,
"message": "Can i take two medicines at a time",
"patient_user_id": 3,
"type": "simple"
}
}
}
Last modified: 2 months ago