Interface IBaseChannelsResolverHost<CH>

interface IBaseChannelsResolverHost<CH extends BaseChannel> {
    channel(id: string, ctx: IBaseActionContext): Promise<CH>;
    channels(
        input: FetchChannelsInput,
        info: GraphQLResolveInfo,
    ): Promise<IOffsetPaginated<CH>>;
    createChannel(
        input: CreateChannelInput,
        ctx: IBaseActionContext,
    ): Promise<CH>;
    deleteChannel(
        input: DeleteChannelInput,
        ctx: IBaseActionContext,
    ): Promise<DeleteChannelPayload>;
    updateChannel(
        input: UpdateChannelInput,
        ctx: IBaseActionContext,
    ): Promise<CH>;
}

Type Parameters

Methods