Represents input data for updating an existing survey. This class is used to validate the survey data before applying updates in the database.
title
description
public
category
CreateCategoryInput
The class uses the following decorators:
@Field()
@Length()
Represents input data for updating an existing survey. This class is used to validate the survey data before applying updates in the database.
Description
title
: The title of the survey (must be between 10 and 255 characters).description
: The description of the survey (must be between 100 and 5000 characters).public
: Indicates whether the survey is public or private (optional).category
: The category associated with the survey (optional, follows structure ofCreateCategoryInput
).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.