Chat_User
A chat user
type Chat_User {
channelUserCount(
hideEmptyChat: Boolean = false
): Int!
channelWithUnreadMessageCount: Int!
channels(
pagination: Chat_OffsetPaginationInput! = [object Object]
): [Chat_Channel!]!
channelsUsers(
channels_ids: [Chat_UUID!]
latestActivityAfter: Chat_DateTime
pagination: Chat_OffsetPaginationInput
hideEmptyChat: Boolean = false
): [Chat_ChannelUser!]!
createdAt: Chat_DateTime!
externalRessource(
useCommunityProfile: Boolean = false
communityId: String
): Chat_ExternalRessourceInterface
id: ID!
unreadMessageCount: Int!
updatedAt: Chat_DateTime!
}
Fields
Chat_User.channelUserCount ● Int! non-null scalar
How many channel user is linked to this user
Chat_User.channelUserCount.hideEmptyChat ● Boolean scalar
If true, hides empty chats from the results
Chat_User.channelWithUnreadMessageCount ● Int! non-null scalar
How many channel have unread messages
Chat_User.channels ● [Chat_Channel!]! non-null object
Channels linked to this user
Chat_User.channels.pagination ● Chat_OffsetPaginationInput! non-null input
Chat_User.channelsUsers ● [Chat_ChannelUser!]! non-null object
Channels users linked to this user
Chat_User.channelsUsers.channels_ids ● [Chat_UUID!] list scalar
Chat_User.channelsUsers.latestActivityAfter ● Chat_DateTime scalar
Useful to get channels that have been updated after this date only
Chat_User.channelsUsers.pagination ● Chat_OffsetPaginationInput input
Chat_User.channelsUsers.hideEmptyChat ● Boolean scalar
If true, hides empty chats from the results
Chat_User.createdAt ● Chat_DateTime! non-null scalar
The user creation date
Chat_User.externalRessource ● Chat_ExternalRessourceInterface interface
The linked external ressource, can be null if the backend did not respond or if down for any reason
Chat_User.externalRessource.useCommunityProfile ● Boolean scalar
If true, returns ExternalCommunityProfile type with communityProfileId. If false (default), returns ExternalUser type with userId for backward compatibility.
Chat_User.externalRessource.communityId ● String scalar
Optional community ID to resolve the correct community profile. When provided, takes precedence over the channel's communityId. Useful for queries like viewer.ownedUsers where no channel context is available.
Chat_User.id ● ID! non-null scalar
Chat_User.unreadMessageCount ● Int! non-null scalar
Chat_User.updatedAt ● Chat_DateTime! non-null scalar
The user last update date
Member Of
Chat_Channel object ● Chat_ChannelUser object ● Chat_File object ● Chat_Message object ● Chat_MessageMention object