Skip to content

Commit

Permalink
add movies to select
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwitr0 committed Aug 7, 2024
1 parent 1e09e8f commit a2c6935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/person/schemas/person-award.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ import { ApiProperty } from '@nestjs/swagger';
import { Award } from 'src/common/models/award.model';
import { ApiNullableProperty } from '../../common/decorators/api-nullable-property.decorator';
import { READ_PREFERENCE } from '../../common/configs/mongo.config';
import { Expose } from 'class-transformer';

class Movie {
@ApiProperty()
@Prop({ index: true })
@Expose()
id: number;

@ApiNullableProperty()
@Prop()
@Expose()
name: string;

@ApiNullableProperty()
@Prop()
@Expose()
rating: number;
}

Expand Down

0 comments on commit a2c6935

Please sign in to comment.