function categoryJoin
categoryJoin(
alias: string,
categoryId?: string
): [string, string[]]

Returns the join that keeps only the rows of alias, a dump or playlist as kind says, filed under categoryId, with its parameters, or nothing without one. A query puts the join after its FROM and the parameters before its own.

Parameters

alias: string
optional
categoryId: string

Return Type

[string, string[]]

Usage

import { categoryJoin } from "api/services/category-service.ts";