nestjs-typeorm-paginate icon indicating copy to clipboard operation
nestjs-typeorm-paginate copied to clipboard

class-transformer usage

Open kevin-lot opened this issue 2 years ago • 0 comments

How can I use https://github.com/typestack/class-transformer to have group serialization?

In my controller, I want to excludeAll and perform serialization only on the properties I want to serialize. If I do this, no properties are serialized at all, which seems normal since "items" and "meta" do not have the @Expose annotation.

How can I do this?

Best regards.

kevin-lot avatar May 20 '22 10:05 kevin-lot