All files / src/modules/listings/dto listings-filter.dto.ts

100% Statements 11/11
100% Branches 0/0
100% Functions 3/3
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1611x     11x   11x   11x 11x   11x 11x   11x 11x  
import { InputType, Field, Int, Float } from '@nestjs/graphql';
 
@InputType()
export class ListingsFilterDto {
  @Field({ nullable: true })
  search?: string;
 
  @Field(() => Float, { nullable: true })
  minPrice?: number;
 
  @Field(() => Float, { nullable: true })
  maxPrice?: number;
 
  @Field(() => Int, { nullable: true })
  addressId?: number;
}