developer239/node-type-orm-graphql

View on GitHub
src/modules/Auth/inputs/ChangePassword.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Length, MinLength } from 'class-validator'
import { Field, InputType } from 'type-graphql'

@InputType()
export class ChangePasswordInput {
  @Field()
  @Length(1, 255)
  token: string

  @Field()
  @MinLength(5)
  password: string
}