Represents input data for creating a new survey. This class is used to validate the survey data before storing it in the database.
title
description
public
category
CreateCategoryInput
The class uses the following decorators:
@Field()
@Length()
Represents input data for creating a new survey. This class is used to validate the survey data before storing it in the database.
Description
title
: the title of the survey, must be between 10 and 255 characters.description
: the detailed description of the survey, must be between 100 and 5000 characters.public
: indicates whether the survey is public or private.category
: category for the survey, represented by a nested input of typeCreateCategoryInput
.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.