Create category into database
Promise<{id: string}> id of created category record
Private
createDelete category from database by Id Process of deleting a category:
Get category from database
Promise<Category | undefined> Category data if fetched successfully, or null if data not found by id
Return two layer category tree. category object with a children property, which is a categoryList
parentId of a categoryTreeList
categoryTree blocks-6a17
List paginated categories
paginated list query options
paginated category list query result
Normalize category to response format
CategoryResponse which aligns with the API docs format to return to frontend
Normalize list of category responses
category models
Normalize category tree to response format
CategoryResponse which aligns with the API docs format to return to frontend blocks-404c
Normalize list of category tree responses
category models
Update category data. If category parentId is updated, all the location have this category id in path, will get updated.
blocks-9132
Private
Readonly
categoryPrivate
dbStatic
Readonly
COLLECTION_Generated using TypeDoc
Category service