А
Думаю это дело привычки)
тоже само как и кто-то пишет { name, email }, а кто-то {name, email}
Просто разный кодстайл
Size: a a a
А
А
{ data: UserRo, pagination: PagiantionRo }class UserListRo {
@ApiProperty()
data: UserRo;
@ApiProperty()
pagination: PagiantionRo
}VA
🏡K

R

ДФ
return this.userService.remove(ids)не обязательно делать await именно в этом куске кода !!!
А
MV
Б
import { Catch, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
import { MongoError } from 'mongodb';
@Catch(MongoError)
export class MongoExceptionFilter implements ExceptionFilter {
catch(exception: MongoError, host: ArgumentsHost) {
console.log(exception);
}
}@UseFilters(HttpExceptionFilter, MongoExceptionFilter)
getWidget(@Param('widgetID') widgetID: string) {
return this.widgetService.getWidget(widgetID);
}
async getWidget(widgetID: string) {
return await this.widgetModel.findById(widgetID);
}<
<
SL
AT
А
SL
GS
SL
SL
GS