Skip to content

Instantly share code, notes, and snippets.

@Mauzzz0
Created August 9, 2022 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mauzzz0/38c12761da4215e3745c1bb50ca46109 to your computer and use it in GitHub Desktop.
Save Mauzzz0/38c12761da4215e3745c1bb50ca46109 to your computer and use it in GitHub Desktop.
NestJs Swagger Query Array Of Numbers
@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