Skip to content
Snippets Groups Projects

Movie page

Files

+ 1
0
@@ -16,6 +16,7 @@ const MovieSchema = new mongoose.Schema(
video: { type: Boolean },
vote_average: { type: Number },
vote_count: { type: Number },
cast: { type: Array },
},
{
toJSON: { virtuals: true }, // So `res.json()` and other `JSON.stringify()` functions include virtuals
Loading