Mongodb – how to set multi type for one field (with type of array or object) of schema (Typescript , NestJs)
I want to set multi type for one field of my schema like this: @Schema({ validateBeforeSave: true, _id: false }) class example1 { a: string; b: number; } @Schema({ validateBeforeSave: true, _id: false }) class example2 { a: string; b:…