Chat (Object)
Description
No description
Fields
| Name | Description |
|---|---|
| _id - ID! | The ID of the chat |
| avatarId - String | The ID of the avatar image |
| avatarUrl - String | The URL of the avatar image |
| createdAt - DateTime! | The date the chat was created |
| createdById - String! | The ID of the user who created the chat |
| currentParticipant - ChatParticipant | The participation record of the authenticated user |
| hashId - String | The hash ID of the chat, used to determine if there is an existing chat |
| lastMessage - MessagePreview | The last message sent to the chat |
| name - String | The name of the chat |
| networkId - String! | The network to which the chat belongs |
| otherParticipant - ChatParticipant | The participation record of the other user in a direct chat. Null for group chats. |
| participantCount - Int! | The number of participants in the chat |
| status - ChatStatus! | The status of the chat: active or archived |
| type - ChatType! | The type of the chat: direct or group |
| updatedAt - DateTime! | The date the chat was updated |
type Chat {
_id: ID!
avatarId: String
avatarUrl: String
createdAt: DateTime!
createdById: String!
currentParticipant: ChatParticipant
hashId: String
lastMessage: MessagePreview
name: String
networkId: String!
otherParticipant: ChatParticipant
participantCount: Int!
status: ChatStatus!
type: ChatType!
updatedAt: DateTime!
}