Message Object
Description
Represents a message in an order conversation thread or general messaging system.
Declaration
type Message {
_id: ID!
created: Date!
sender: MessageSender
subject: String
message: String!
fromBuyer: Boolean
flagged: Boolean!
content: String!
attachments: [MessageAttachment!]!
read: Boolean
orderId: String
orderIncId: Int
uri: String
via: String
}
Fields
| Name | Type | Description |
|---|---|---|
_id | ID! | Internal database identifier. |
created | Date! | Date when the message was created. |
sender | MessageSender | Sender information for the message. |
subject | String | Subject line of the message. |
message | String! | Message content text. |
fromBuyer | Boolean | Whether the message was sent by the buyer. |
flagged | Boolean! | Whether the message has been flagged for attention. |
content | String! | Formatted message content (HTML or processed text). |
attachments | [MessageAttachment!]! | Attachments included with the message. |
read | Boolean | Whether the message has been read. |
orderId | String | Order identifier string associated with this message. |
orderIncId | Int | Incremental numeric identifier of the order associated with this message. |
uri | String | URI identifier for the message. |
via | String | Channel or method through which the message was sent (e.g., "email", "web", "api"). |