![i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send](https://preview.redd.it/i-am-getting-undefined-when-trying-to-send-express-i-am-new-v0-ce1aj8qe6pha1.jpg?width=640&crop=smart&auto=webp&s=18534751c9d9127978fd3a4c2e32a18456becbd5)
i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send
![i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send](https://preview.redd.it/i-am-getting-undefined-when-trying-to-send-express-i-am-new-v0-es5sccme6pha1.jpg?width=523&format=pjpg&auto=webp&s=f2b6d32ae27e6e9652ad8d2f75bf8477ce5e0a2e)
i am getting undefined when trying to send req.body express (i am new to this idk why this is happening but when I create a route directly in the index it send
![node.js - Model.find({_id:req.body.id}) finds the object but Model.updateOne({_id:req.body.id},{//update}) does not find the the object - Stack Overflow node.js - Model.find({_id:req.body.id}) finds the object but Model.updateOne({_id:req.body.id},{//update}) does not find the the object - Stack Overflow](https://i.stack.imgur.com/1hAfp.png)