Skip to main content

Function: channelService()

channelService(client): object

Defined in: service/ChannelService.ts:10

Service class for Channel-related GraphQL operations

Parameters

client

GraphQLClient

Returns

getChannel()

getChannel(variables): Promise<Channel>

Fetches a single channel by ID *

Parameters

variables

ChannelVariables

Channel ID to fetch *

Returns

Promise<Channel>

Promise<Channel> The channel data

getChannels()

getChannels(): Promise&lt;Channel[]>

Fetches a list of channels *

Returns

Promise&lt;Channel[]>

Promise<Channel[]> The channels data array