sendMessage {
   sessionID: String!  message: String!  prevMessageID: String! 
}: MessageResponse!

Send a message to a session. If prevMessageID is "", return all messages in the session. If prevMessageID is not "", return all messages after prevMessageID.

Permissions needed

select (sessions):

  • id
  • session_id update (sessions):
  • update_at

Arguments

sessionID
String!
required

Session to send the message to

message
String!
required

Message to send

prevMessageID
String!
required

Only return messages after this message ID

Response

Type: MessageResponse!

sessionID
String!

ID of the session

messages
[Message!]!

Messages in this session