Marketplace API / Types
DirectConversation
ObjectA one-to-one conversation between the caller and a member.
type DirectConversation implements NodeFields
| Field | Type | Description |
|---|---|---|
createdAt | DateTime! | When the conversation was created. |
hasUnreadMessages | Boolean! | True when another user posted after the caller last read the conversation. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
inbox | DirectConversationInbox! | The inbox that holds the conversation for the caller. |
isMuted | Boolean! | Whether the caller muted this conversation. A muted conversation sends the caller no push and no email. |
lastMessageAt | DateTime! | When the newest message was posted. |
lastReadMessage | ChatMessage | The message the caller last read. Null when the caller has read no message, when that message is from before the caller last deleted the conversation, or when it is past retention. A deleted message has deletedAt set and a null text. |
latestMessage | ChatMessage | The newest message that is not deleted, from after the caller last deleted the conversation. Null when there is none. |
messages | DirectConversationMessageConnection! | Messages from after the caller last deleted the conversation, newest first. Deleted messages have text null. first defaults to 20, at most 100.Arguments:after: String — Cursor for forward pagination.first: Int — Maximum number of messages to return. |
participant | User! | The other participant's public profile. |
unreadMessageCount | NonNegativeInt! | The number of messages that another user posted after the caller last read the conversation. |