I am making ecommerce application. I want to take input different color from user (basically a seller) for their product if available. For example Shirt have 3 colors White,blue and black. I am using arrays in dto which is as follow:
Now i want to inject different colors of a product. What will be suitable method for this?
Thanks in Advance.
@Allow()
@ApiProperty({type: [String]})
color: [string]
} ```