Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
norareidy committed Oct 4, 2023
1 parent 088f341 commit 45a05cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func main() {
}

filter := bson.D{{"_id", id}}
opts := options.FindOne().SetProjection(bson.D{{"date_ordered", 0}, {"rating", 0}})
opts := options.FindOne().SetProjection(bson.D{{"item", 1}, {"rating", 1}})

var result Review
err = coll.FindOne(context.TODO(), filter, opts).Decode(&result)
Expand Down

0 comments on commit 45a05cb

Please sign in to comment.