Represents input data for creating a new survey answer. This class is used to validate the survey answer data before storing it in the database.
content
question
Questions
createdAt
The class uses the following decorators:
@Field()
Represents input data for creating a new survey answer. This class is used to validate the survey answer data before storing it in the database.
Description
content
: the answer content for the survey question.question
: the question to which this answer is associated (relation toQuestions
).createdAt
: timestamp of when the answer was created (automatically set).The class uses the following decorators:
@Field()
: Exposes the property in the GraphQL schema (via type-graphql).