NestJS - Pipes
Identify the issue in this NestJS controller method:
async getUser(@Query('id', DefaultValuePipe(100)) id: number) { return id; }async getUser(@Query('id', DefaultValuePipe(100)) id: number) { return id; }new keyword.DefaultValuePipe(100) without new, which causes a runtime error.new keyword. -> Option Cnew [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions