Skip to content
Snippets Groups Projects

Add user and other

Files

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