ask-and-trust - v1.1.0
    Preparing search index...

    Represents input data for creating a new survey. This class is used to validate the survey data before storing it in the database.

    • 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 type CreateCategoryInput.

    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.
    Index

    Constructors

    Properties

    category: number
    description: string
    public: boolean
    title: string