Skip to main content
objectDirectMessage

Implements

Fields

bookmarkedAt
ISO8601DateTime

When the viewer bookmarked this conversation, or null when it is not bookmarked

id
ID!

ID of the object.

isGroup
Boolean!

True for group chats (more than two participants)

lastChatAt
ISO8601DateTime

When the most recent message was sent

lastMessage

The most recent message in the conversation

Messages in this conversation, newest first. System messages (renames, member changes) are excluded unless includeSystemMessages is true. Each cursor names a message, so paging from it continues at that message while messages arrive or are deleted.

Arguments
after
String

Returns the elements in the list that come after the specified cursor.

aroundMessageId
ID

Center the page on this message — resource ID or GlobalID: about half the page is newer than it, then the message itself, then older ones; a side with fewer messages lends its share to the other. Takes first only, not after, before, or last. The message must be visible in this list, so a system message needs includeSystemMessages.

before
String

Returns the elements in the list that come before the specified cursor.

first
Int

Returns the first n elements from the list.

includeSystemMessages
Boolean
default:false

Include system lifecycle messages (renames, member adds and removes). Defaults to false.

last
Int

Returns the last n elements from the list.

participants

Members of the conversation

resourceId
ID!

Resource ID for this object, for interop with the Admin API.

title
String

Display title — the group name or member names for direct messages, the space title for space chats, or a preview of the parent message for threads

unreadCount
Int!

Number of messages the viewer has not read in this conversation