Skip to main content

sendMessageToDirectChat method

String sendMessageToDirectChat ()

Implementation

String sendMessageToDirectChat() \{
return '''
mutation sendMessageToDirectChat(
\$chatId: ID!
\$messageContent: String!
)\{
sendMessageToDirectChat(
chatId: \$chatId
messageContent: \$messageContent
) \{
messageContent
sender\{
firstName
\}
receiver\{
firstName
\}
\}
\}
''';
\}