Alokai

getChannel

Fetch channels.

By default, it uses the getChannelDefaultQuery GraphQL query

Signature

declare function getChannel(
	context: CommercetoolsIntegrationContext,
	params?: GetChannelParams,
	customQuery?: CustomQuery
): Promise<GetChannelResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredCommercetoolsIntegrationContext
paramsOptionalGetChannelParams
customQueryOptionalCustomQuery

Referenced Types

Examples

Fetch channel by id.

const { channels } = await sdk.commerce.getChannel({ id: "123" })

On this page