Nestjs “IsUnique” validation (custom validator with database query) for email, username, or any column or field
In this tutorial, we're going to implement IsUnique custom validation in Nestjs to check if a database value (e.g. email, username, etc.) is unique or not, using class-validator. We'll see…