Answer by user2662006 for Getting a validation error in mongoose even though...
You need to install ( npm install body-parser --save), and use it in your express server as below (app.js). hope this answer help someone :) var express = require('express') var bodyParser =...
View ArticleAnswer by kaxi1993 for Getting a validation error in mongoose even though...
Try this code below and let me know if the same error will appear app.post('/saveappointment', function(req, res) { var appointment = new Appointment({ //need to add an email here name: req.body.name,...
View ArticleGetting a validation error in mongoose even though files are provided
I am getting a validation error with the following message on saving to database even though I have provided all the fields, { [ValidationError: Validation failed] message: 'Validation failed', name:...
View Article
More Pages to Explore .....