Chat
No description
type Chat {
avatarMimeType: String
avatarURL: String
createdAt: DateTime
creator: User
description: String
firstUnreadMessageId: ID
hasUnread: Boolean
id: ID!
lastMessage: ChatMessage
members(
after: String
before: String
first: Int
last: Int
): ChatMembersConnection
messages(
after: String
before: String
first: Int
last: Int
): ChatMessagesConnection
name: String
organization: Organization
unreadMessagesCount: Int
updatedAt: DateTime
updater: User
}
Fields
Chat.avatarMimeType ● String scalar
Mime type of the avatar of the chat.
Chat.avatarURL ● String scalar
URL to the avatar of the chat.
Chat.createdAt ● DateTime scalar
Date time at the time the chat was first created.
Chat.creator ● User object
User who created the chat.
Chat.description ● String scalar
Custom information about the chat.
Chat.firstUnreadMessageId ● ID scalar
ID of the first unread message for the current user in this chat, if any.
Chat.hasUnread ● Boolean scalar
Whether the current user has unread messages in this chat.
Chat.id ● ID! non-null scalar
Global identifier of the chat.
Chat.lastMessage ● ChatMessage object
Most recent message in this chat.
Chat.members ● ChatMembersConnection object
GraphQL connection to traverse through the users that are members of the chat.
Chat.members.after ● String scalar
Chat.members.before ● String scalar
Chat.members.first ● Int scalar
Chat.members.last ● Int scalar
Chat.messages ● ChatMessagesConnection object
GraphQL connection to traverse through the messages created within the chat.
Chat.messages.after ● String scalar
Chat.messages.before ● String scalar
Chat.messages.first ● Int scalar
Chat.messages.last ● Int scalar
Chat.name ● String scalar
Name of the chat.
Chat.organization ● Organization object
Organization which the chat belongs to.
Chat.unreadMessagesCount ● Int scalar
Number of unread messages for the current user in this chat.
Chat.updatedAt ● DateTime scalar
Date time at the time the chat was last updated.
Chat.updater ● User object
User who last updated the chat.
Returned By
chat query ● chatsByUser query ● createChat mutation ● createChatMembership mutation ● deleteChat mutation ● deleteChatMembership mutation ● unreadChats query ● updateChat mutation ● updateChatMembership mutation
Member Of
ChatMessage object ● OrganizationChatsConnectionEdge object