@ObjectType() class Recipe { @Field() id: string; @Field() title: string; @Field() ratings: Rate[]; @Field() averageRating: number; }