Create chat
POST
http://localhost:3000/graphqlMutation
mutation CreateChatMessage($createChatMessageInput: CreateChatMessageInput!) {
createChatMessage(createChatMessageInput: $createChatMessageInput) {
chat_id
patient_user_id
doctor_user_id
type
message
}
}
Variables
{
"createChatMessageInput": {
"patient_user_id": 3,
"doctor_user_id": 2,
"type": "Medicine intake",
"message": "Can i take two medicines at a time"
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"createChatMessage": {
"chat_id": 1,
"patient_user_id": 3,
"doctor_user_id": 2,
"type": "Medicine intake",
"message": "Can i take two medicines at a time"
}
}
}
Last modified: 2 months ago