Marketplace API / Types
ChatChannel
ObjectA chat channel and its access rules.
type ChatChannel implements NodeFields
| Field | Type | Description |
|---|---|---|
access | ChatChannelAccess! | Who can read and post in this channel. |
createdAt | DateTime! | When the channel was created. |
description | String | The channel's description. Null when the channel has none. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
messages | ChatChannelMessageConnection! | Messages that are not deleted and are within retention, newest first. first defaults to 20, at most 100. Requires viewer.canRead.Arguments:after: String — Cursor for forward pagination.first: Int — Maximum number of messages to return. Defaults to 20. Values outside 1 through 100 are rejected. |
name | String! | The channel's display name. |
position | NonNegativeInt! | Zero-based position in its section, or among channels with no section. |
realtimeChannelName | NonEmptyString! | The realtime channel this channel's events are published on. Attach to it with the Ably client that Query.ablyTokenRequest authorizes. Several channels can share one, so match an event to a channel by the channel ID in its payload. |
section | ChatChannelSection | Null when the channel has no section. Channels with no section come after every section. |
slug | Slug! | Changes only when the channel is renamed. |
url | URL! | The channel page on the storefront. |
viewer | ChatChannelViewerState | The caller's access to this channel and read state in it. Null for a signed-out caller. |