Represents user input for logging in (SIGN IN). This class is used to validate the email and password data provided by the user for authentication.
email
password
The class uses the following decorators:
@Field()
@IsEmail()
@IsNotEmpty()
Represents user input for logging in (SIGN IN). This class is used to validate the email and password data provided by the user for authentication.
email
: The user's email address, must be valid.password
: The user's password, must not be empty.The class uses the following decorators:
@Field()
: Exposes the property in the GraphQL schema (via type-graphql).@IsEmail()
: Ensures the email is valid.@IsNotEmpty()
: Ensures the password is provided.