Skip to main content

Class: ChannelService

Defined in: service/ChannelService.ts:35

Backwards-compatible class form. New code should call channelService(client).

Constructors

Constructor

new ChannelService(client): ChannelService

Defined in: service/ChannelService.ts:37

Parameters

client

GraphQLClient

Returns

ChannelService

Methods

getChannel()

getChannel(variables): Promise<Channel>

Defined in: service/ChannelService.ts:42

Fetches a single channel by ID

Parameters

variables

ChannelVariables

Channel ID to fetch

Returns

Promise<Channel>


getChannels()

getChannels(): Promise<Channel[]>

Defined in: service/ChannelService.ts:46

Fetches a list of channels

Returns

Promise<Channel[]>