[英]UnhadledPromiseRejectionwarning: TypeError: Cannot read property " id' of undefined
i'm trying to get a reference of resort in room but i got this error我试图在房间里获得度假村的参考,但我收到了这个错误
I think that the error is how you parse the request.我认为错误在于您解析请求的方式。 Try with "req.body.resort", in your postman screen, the resort is a string and not an object.尝试使用“req.body.resort”,在您的邮递员屏幕中,度假村是一个字符串而不是一个对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.