Category

Actually, the Category logic will be identical to its respective part in the Core module. So, you may use that page as a guide, if you wish. But as a summary, we should

  • Define its CreateDTO by copying the name field from the users' CreateDTO

  • Copy the contents of the UsersService to its own service and adjust

  • In findOne(), fetch a category with its products

  • In remove(), check if the category has associated products before proceeding

Commit - Implementing category logic

Last updated