import { Field, InputType } from '@nestjs/graphql'
import { IsNotEmpty, MinLength } from 'class-validator'

@InputType()
export class LoginInput {
  @Field()
  @IsNotEmpty()
  email!: string

  @Field()
  @IsNotEmpty()
  @MinLength(8)
  password!: string

  @Field({ nullable: true })
  remember?: boolean
}
