🗒️Nestjs Pipe用法
type
status
slug
date
summary
tags
category
password
icon
内置
Nest comes with nine pipes available out-of-the-box:Nest 附带九个开箱即用的管道:
ValidationPipe
ParseIntPipe
ParseFloatPipe
ParseBoolPipe
ParseArrayPipe
ParseUUIDPipe
ParseEnumPipe
DefaultValuePipe
ParseFilePipe
They're exported from the
@nestjs/common
package.它们是从 @nestjs/common
包中导出的。自定义
兼容json传参,raw 传参,json 为字符串传参
nestjs @body if data is string type, use json parse
nestjs@body如果数据是字符串类型,则使用json解析
参考
上一篇
typeorm用法
下一篇
Nestjs Middleware
Loading...