getChannel
Fetch channels.
By default, it uses the getChannelDefaultQuery GraphQL query
Signature
declare function getChannel(
context: CommercetoolsIntegrationContext,
params?: GetChannelParams,
customQuery?: CustomQuery
): Promise<GetChannelResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | CommercetoolsIntegrationContext | |
params | Optional | GetChannelParams | |
customQuery | Optional | CustomQuery |
Referenced Types
Examples
Fetch channel by id.
const { channels } = await sdk.commerce.getChannel({ id: "123" })