NestJS - Pipes
How can you enforce that a query parameter
active is both required and a boolean using NestJS pipes?active is both required and a boolean using NestJS pipes?exceptionFactory, you can throw a custom error if the parameter is missing or invalid.new ParseBoolPipe({ exceptionFactory: () => new BadRequestException('active is required') }) to enforce required boolean -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions