Nestjs swagger operation id A better approach is to use DI, as it is in this answer.