Add a Movie Review

Learn how to create a controller that implements the create functionality for movie reviews.

Understanding the movie review system

Our primary goal is to allow users to review the movies of their choice. If a new Batman movie is released today, and there’s a thrilling scene filled with suspense, an administrator of our application could post this as a review topic and our users would be able to post their thoughts about it.

A signed-in user can browse through a list of movies and leave reviews about them in the movie review process. They can also see a list of other user reviews, delete their reviews, and view all of their previous reviews.

Let’s get started on the process of adding a review!

Setting up a review model

The review struct will include the following parameters:

  • Id: The object ID.

  • Review_id: The review ID.

  • Movie id: The unique identifier of the movie to be reviewed.

  • Reviewer id: The ID of the user who’s reviewing the film.

  • Review: The user feedback.

  • Created at: The date and time the review was created.

Get hands-on with 1400+ tech skills courses.