ChatConversation
A chat conversation: a direct chat, a group or a channel.
type ChatConversation {
channelId: String
createdAt: DateTime!
id: ID!
isGroup: Boolean!
lastMessageAt: DateTime!
messageCount: Int
messages: [ChatMessage!]
organizationId: String!
title: String!
type: String!
updatedAt: DateTime!
userId: String!
}
Fields
ChatConversation.channelId ● String scalar
The ID of the channel, when it is a channel conversation.
ChatConversation.createdAt ● DateTime! non-null scalar
When the record was created.
ChatConversation.id ● ID! non-null scalar
The unique ID of this record.
ChatConversation.isGroup ● Boolean! non-null scalar
True when more than two people are in it.
ChatConversation.lastMessageAt ● DateTime! non-null scalar
When the last message was sent.
ChatConversation.messageCount ● Int scalar
How many messages there are.
ChatConversation.messages ● [ChatMessage!] list object
The messages.
ChatConversation.organizationId ● String! non-null scalar
The ID of the organization the record belongs to.
ChatConversation.title ● String! non-null scalar
The title of the conversation.
ChatConversation.type ● String! non-null scalar
The kind of conversation.
ChatConversation.updatedAt ● DateTime! non-null scalar
When the record was last changed.
ChatConversation.userId ● String! non-null scalar
The ID of the user.
Returned By
chatConversation query ● chatConversations query ● createConversation mutation ● updateConversation mutation
Member Of
ChatChannel object