gradido/backend/src/graphql/arg/UnsecureLoginArgs.ts
2023-08-11 10:39:53 +02:00

18 lines
350 B
TypeScript

import { IsEmail, IsInt, IsString } from 'class-validator'
import { ArgsType, Field, Int } from 'type-graphql'
@ArgsType()
export class UnsecureLoginArgs {
@Field(() => String)
@IsEmail()
email: string
@Field(() => String)
@IsString()
password: string
@Field(() => Int, { nullable: true })
@IsInt()
publisherId?: number | null
}