Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

288
Views
What is the difference between "enableImplicitConversion" and "transform" in NestJS

I'm wonder what a difference between

transform: true

And

 transformOptions: {
      enableImplicitConversion: true,
    }

From documentation I don't quite understand which I must to use for what cases.

https://docs.nestjs.com/techniques/validation https://github.com/typestack/class-transformer

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

transform means that the ValidationPipe will return the new class instance at the end of the pipe call. This has no effect on the validations ran, as plainToClass will be called regardless so that validate can run against the class.

enableImplicitConversion will tell class-transformer that if it sees a primitive that is currently a string (like a boolean or a number) to assume it should be the primitive type instead and transform it, even though @Type(() => Number) or @Type(() => Boolean) isn't used.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!