Skip to content
loading...

re: Server side architecture with Node and Typescript using Nest VIEW POST

FULL DISCUSSION
 

Nice reading, just one thing to add, async and await is useless in cases like this one:

   async create(@Body() request: CreateLabelDto): Promise<Label> {
        return await this.service.Insert(request.ToLabel());
    }

You could just do:

    create(@Body() request: CreateLabelDto): Promise<Label> {
        return this.service.Insert(request.ToLabel());
    }
code of conduct - report abuse