trying to working with insert data into MongoDB and it was tasted by the POST Man testing tool but it shows me the below error:
(node:16508) UnhandledPromiseRejectionWarning: TypeError: Cannot read property
at this time I was not sure why this has happened then I was trying to search to find out it after a couple of time I find what was my mistake. the mistake I did which is I did not import middleware in my index file. so to solve this I goto this index.js file and import middleware there which is like below:
after importing this now everything is okay.
now my postman is like below:
.
that's it.
.
Happy Coding.
osman forhad
Mobile & Web Application Developerđź’»
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)