import { IsOptional, IsInt, Min, Max } from "class-validator"; import { Type } from "class-transformer"; /** * Query parameters for entry-centered graph view */ export class GraphQueryDto { @IsOptional() @Type(() => Number) @IsInt() @Min(1) @Max(5) depth?: number = 1; }