Custom ClassSerializerInterceptor in NestJS to serialize based on user role (express req object)

后端 未结 0 614
感动是毒
感动是毒 2020-12-16 22:11

In NestJS route, I want to serialize reponse based on request (user\'s role). This means that I need to pass option groups: [] into transformToPlain

相关标签:
回答
  • 消灭零回复
提交回复
热议问题