Created
August 9, 2022 14:06
-
-
Save Mauzzz0/38c12761da4215e3745c1bb50ca46109 to your computer and use it in GitHub Desktop.
NestJs Swagger Query Array Of Numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ApiProperty({ type: [Number] }) | |
@ArrayMinSize(2) | |
@ArrayMaxSize(2) | |
@Type(() => Number) | |
@IsArray() | |
@IsNumber({}, { each: true }) | |
public entityIds: number[]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment