A survey contains an array of question. Is it possible to have an array of InputType or Question?
@InputType()
export class SurveyInput {
@Field(() => String)
name: string
@Field(() => String)
status: string
@Field(() => String)
category: string
@Field(() => String)
initiativeId: string
@Field(() => QuestionInput)
questions: QuestionInput[]
}
@InputType()
export class QuestionInput {
@Field(() => String)
question: string
@Field(() => String)
maxPoint: number
}
That's how i solved it at the end