Trying to update a single movie property with PATCH
Hello, I'm building a REST API and I'm implementing a patchOneMovieById method, that takes an id and a an object of properties to update, I've split my code in the following files: movie.router.ts, movie.controller.ts, movie.service.ts and movie.repository.ts
Here's the code for the service and repository:
The issue is, when I update a single property on a movie, the other properties are deleted and I get an output such as:
0 Replies