You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Max and all other viewers, love your videos, but in this tutorial I got stuck after implementing the router.post('/', ....), whenever I try to POST the order in postman software it comes out as
{
"error": {
"message": "document must have an _id before saving",
"name": "MongooseError"
}
}
and nothing gets posted in localhost:3000/orders
I mean why does the mongoose expect the _id to be there first, isn't the productId should suffice for that? I"m sorry if I'm vague , provide any explanation or suggestion that will help me guide
The text was updated successfully, but these errors were encountered:
Hello Max and all other viewers, love your videos, but in this tutorial I got stuck after implementing the router.post('/', ....), whenever I try to POST the order in postman software it comes out as
and nothing gets posted in localhost:3000/orders
I mean why does the mongoose expect the
_id
to be there first, isn't the productId should suffice for that? I"m sorry if I'm vague , provide any explanation or suggestion that will help me guideThe text was updated successfully, but these errors were encountered: