Skip to content

class-transformer usage #726

@kevin-lot

Description

@kevin-lot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions