Skip to content

Commit 64de3c1

Browse files
Update content/controllers.md
1 parent c72f348 commit 64de3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ async create(createCatDto) {
407407
}
408408
```
409409

410-
> info **Hint** Our `ValidationPipe` can filter out properties that should not be received by the method handler. In this case, we can whitelist the acceptable properties, and any property not included in the whitelist is automatically stripped from the resulting object. In the `CreateCatDto` example, our whitelist is the `name, age and breed` properties. Learn more [here.](https://docs.nestjs.com/techniques/validation#stripping-properties)
410+
> info **Hint** Our `ValidationPipe` can filter out properties that should not be received by the method handler. In this case, we can whitelist the acceptable properties, and any property not included in the whitelist is automatically stripped from the resulting object. In the `CreateCatDto` example, our whitelist is the `name`, `age`, and `breed` properties. Learn more [here](https://docs.nestjs.com/techniques/validation#stripping-properties).
411411

412412
#### Handling errors
413413

0 commit comments

Comments
 (0)