Represents input data for creating a new survey category. This class is used to validate the category data before storing it in the database.
name
The class uses the following decorators:
@Field()
@Length()
Represents input data for creating a new survey category. This class is used to validate the category data before storing it in the database.
Description
name
: the name of the survey category, must be between 5 and 100 characters.The class uses the following decorators:
@Field()
: Exposes the property in the GraphQL schema (via type-graphql).@Length()
: Ensures the string length is within the specified bounds.