When using this nest-cli.json configuration
{
"name": "@nestjs/swagger",
"options": {
"introspectComments": true
}
}
I can get the swagger documentation generated like this
This only works when the controllers return the type of an entity. The POST method works because the repository.create method returns an entity. But the find* methods return the Loaded<User, never> type.