Question · NestJS course · Module 11: Swagger and OpenAPI
The @ApiQuery Decorator
What is the purpose of the @ApiQuery() decorator in Swagger?
Answer options
- Describes query parameters after the ? sign in the URL
- Executes a database query
- Defines a GraphQL schema
- Creates a query builder for the ORM
You can check the correct answer by solving this task in the CodeWorlds game.