Configure Swagger
Use the standard Nest Swagger setup:main.ts
/api.
Customize generated operations
Set shared tags at the endpoint level and operation-specific descriptions, tags, or Swagger operation options underone or many.
todoItemDTOs.queryMany and todoItemDTOs.createOne. Use dtoName to change that logical name and basePath to change only the URL path.
Schema accuracy
Use@Field, @FilterableField, and @IDField on DTO properties so Swagger, transformation, and validation share the same metadata. When reflection cannot infer a nested or array type, pass a return type explicitly: