diff --git a/source/includes/fundamentals/code-snippets/CRUD/retrieve.go b/source/includes/fundamentals/code-snippets/CRUD/retrieve.go index 16f4430d..97b8c330 100644 --- a/source/includes/fundamentals/code-snippets/CRUD/retrieve.go +++ b/source/includes/fundamentals/code-snippets/CRUD/retrieve.go @@ -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)