Easy
Consider the following code snippet:
@Post()
async create(@Body() createCatDto: CreateCatDto) {
this.catsService.create(createCatDto);
}
What is the role of the @Body()
decorator in this extract?
Author: AxelStatus: PublishedQuestion passed 341 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Nest
10
How to declare a class as a controller in Nest.js7
What is the main responsibility of a pipe in Nest.js?7
How to make an `ExceptionFilter` global so that it applies to your entire application in NestJS5
How to define a service or component that can be injected in Nest.js4
Which decorator is used to associate a Guard with a route or controller in Nest?