Mongodb’s _id is not available in the portal file?

  node.js, question

Entry file part code:

app.post("/admin/movie/new", function (req, res) {
 var id=req.body.movie._id;
 var movieObj = req.body.movie;
 var _movie;

Jade file part code:

extends ../layout

block content
.container

.row
 form.form-horizontal(method="post",action="/admin/movie/new")
 input(type='hidden',name='movie[_id]',value="#{movie._id}")
 .form-group
 label.col-sm-2.control-label(for="inputTitle") movieName
 .col-sm-10
 input#inputTitle.form-control(type="text",name="movie[title]",value="#{movie.title}")
 .form-group
 label.col-sm-2.control-label(for="inputDoctor") movieDoctor
 .col-sm-10
 input#inputDoctor.form-control(type="text",name="movie[doctor]",value="#{movie.doctor}")
 
 .col-sm-offset-2.col-sm-10
 Button.btn.btn-danger (type = "submit") entry
 
 
 I saw online that it was because there was no reference to the bodyParser module, but I did.
 The code is as follows:
 var bodyParser = require("body-parser");
 app.use(bodyParser.urlencoded({extended:true}));

app.use(express.static(“public”));

The result is still wrong:
 
 TypeError: Cannot read property '_id' of undefined

Atc: \ users \ administrator \ desktop \ project \Node\app.js:79:28
Handle [ashandle _ request] (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ layer.js: 95: 5)
Atnext (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ route.js: 131: 13)
Dispatch (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ route.js: 112: 3)
Handle [ashandle _ request] (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ layer.js: 95: 5)
Atc: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 277: 22
Process _ params (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 330: 12)
Atnext (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 271: 10)
Atservestatic (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ serve-static \ index.js: 74: 16)
Handle [ashandle _ request] (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ layer.js: 95: 5)
Attrim _ prefix (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 312: 13)
Atc: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 280: 7
Process _ params (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 330: 12)
Atnext (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ express \ lib \ router \ index.js: 271: 10)
Atc: \ users \ administrator \ desktop \ project \ node \ node _ modules \ body-parser \ lib \ read.js: 129: 5
Atinvoke callback (c: \ users \ administrator \ desktop \ project \ node \ node _ modules \ raw-body \ index.js: 262: 16)

This error means that we didn’t get req.body.movie, so it is cannot readproperty’ _ id’ of undefined.