title: How to apply both ValidationPipe() and ParseIntPipe() to params?
body: <p>I'm trying to apply both the <code>ValidationPipe()</code> and <code>ParseIntPipe()</code> to the params in my NestJs controller.</p>
  
  <p>The intention is to apply <code>ParseIntPipe()</code> only on <code>@Param('id')</code> but <code>ValidationPipe()</code> for all params in <code>CreateDataParams</code> and Body DTO.</p>
  
  <p>However, I can't seem to apply both pipes the way I wanted. Here's what I have:</p>
  
  <pre><code>@Post(':id')
  @UsePipes(new ValidationPipe())
  async create(
      @Param('id', new ParseIntPipe()) id: number,  //this doesn't work
      @Param() params: CreateDataParams,
      @Body() createDto: CreateDto
  ) {
      // params.id
  }
  </code></pre>
  
  <p>I have tried having another <code>@Param('id')</code> to apply the <code>ParseIntPipe()</code> transformer but this doesn't work.</p>
  
  <p>How can I apply both <code>ValidationPipe()</code> and <code>ParseIntPipe()</code> to the params?</p>