ArChak
ArChak
Explore posts from servers
DTDrizzle Team
Created by ArChak on 7/5/2024 in #help
How to check user input is a valid column before appending condition?
suer, here is the definition, seems I have to make this generic to fit other table as well, thank you
export class SearchColumnFilter {
@ApiProperty()
@IsString()
@IsNotEmpty()
column: string;

@ApiProperty()
@IsString()
@IsNotEmpty()
keyword: string;
}
export class SearchColumnFilter {
@ApiProperty()
@IsString()
@IsNotEmpty()
column: string;

@ApiProperty()
@IsString()
@IsNotEmpty()
keyword: string;
}
4 replies