function attachCategoryIds
attachCategoryIds(
items: { id: string; categoryIds?: string[]; }[]
): void

Sets categoryIds on each of items, dumps or playlists as kind says, in place, in one query. Their rows don't carry them, so every service that returns dumps or playlists calls this first.

Parameters

items: { id: string; categoryIds?: string[]; }[]

Return Type

void

Usage

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