Nested array of object

Hello, please I am working on a schema with an array of nested objects. when I want to create the User, how do I assign it.

This is my schema below:

@Schema({ timestamps: true, id: true })

export class Feedback {

@Transform(({ value }) => value.toString())

_id: ObjectId


label: string

@Prop({ default: false })

status: boolean


question: [


        title: string

        subtitle: string

        types: Types

        values: Values




comment: string


thankYouMessage: string


distributionChannels: distributionChannels

@Prop({ type: mongoose.Schema.Types.ObjectId, ref: User })

@Type(() => User)

user: User