https://docs.nestjs.com/techniques/validation
When you've defined a Dto class, put the @IsOptional() decorator on top of each of those fields to make them optional.
Documentation | NestJS - A progressive Node.js framework
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive Programming).