fetchDirectChatMessagesByChatId method
String fetchDirectChatMessagesByChatId (String chatId)
Implementation
String fetchDirectChatMessagesByChatId(String chatId) {
return '''
query {
directChatsMessagesByChatID(id: "$chatId") {
_id
messageContent
sender {
_id
firstName
image
}
receiver {
_id
firstName
image
}
}
}
''';
}