Search⌘ K

Exercise: Update Movie Reviews

Explore the process of updating movie reviews in a MongoDB collection using Go. This lesson helps you practice modifying existing documents, updating review content, and integrating routes for review edits. Gain hands-on experience managing dynamic data in API development with Go and MongoDB.

Problem Statement

Updating a document is a basic operation in a MongoDB project. This exercise tests your knowledge of updating a document in the collection.

Suppose a reviewer, Alice, has changed their mind about a specific movie. They need help to update their review.

The review model

package models

import
...