is serialization in NestJs the same as DTO pattern?

currently I’m learning NestJs. In the docu I have read about serialization. With this, we can transform our objects. I also know the DTO pattern.

Is serialization a kinf of implementation of the DTO pattern? I mean, with it I can exclude, expose, etc. fields.

I’m a bit confused about this topic.

I have a Java background and there I had my DTO classes and a mapper.

What are the options in NestJs to implement the DTO pattern?

Leave a Comment