chore: add other notes in custom crud controller

This commit is contained in:
Supan Adit Pratama 2024-11-02 00:58:23 +07:00
parent 50c7417e4c
commit 335021b9bb

View File

@ -81,6 +81,7 @@ export class SkeletonCRUDController implements ISkeletonCRUDController {
// - I know this is not recommended but.... is there any way to pass custom unique identifier ?
// - Everyone still can use SkeletonCRUDController with no issue if don't want or don't like this approach, but... unique identifier must ID for sure and the type should either UUID, String or Number
// - Correct me if I wrong. I already read the main repository of NestJS and they use Reflect for passing some metadata ( I know how to do it ) but... it still not possible for dynamic unique identifier
// - Using environment variable is possible to set in the decorator and been tested but... it could lead to human error and more issue than using this which already automated and configured
// Known issue:
// - OpenAPI ( Swagger ) cannot read any decorator inside this
export const CustomCRUDController = (options?: ControllerOption): any => {