I use class-validator to validate query parameters in nest js,why validator does not understand such a syntax as a key ?
class Example {
@IsOptional()
@IsObject()
price[$gte]': { $gte: number };
}
Is there any way to solve this problem ?
To make the behaviour working you could use code like this:
Please, make sure that you have the following section inside bootstrap() function in your main.ts file in src folder