1.0.11 • Published 3 years ago
nestjs-validators-devyx v1.0.11
Description
Custom validators
Installation
$ npm install nestjs-validators-devyx --save
Usages
import {DbExists} from 'nestjs-validators-devyx';
@Validate(DbExists, ["Entity", "id_field"])
import {DbUnique} from 'nestjs-validators-devyx';
@Validate(DbUnique, ["Entity"])
import {IsDocument} from 'nestjs-validators-devyx';
@Validate(IsDocument)
import {IsGreaterThan} from 'nestjs-validators-devyx';
@Validate(IsGreaterThan, ["other_field"])
import {IsActive} from 'nestjs-validators-devyx';
@Validate(IsActive)