Ask Your Question
3

While working on Express JS with mongoose, I encountered an error message that states "student validation failed: fees: Path `fees` is required. at ValidationError". What does the error mean?

asked 2023-06-07 09:45:34 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-07 10:08:01 +0000

ladyg gravatar image

The error message "student validation failed: fees: Path fees is required. at ValidationError" indicates that while using Mongoose to save a student object to the database, the validation process failed because the field "fees" is required but was not provided. Therefore, Mongoose will not save the student object to the database until this required field is provided.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-07 09:45:34 +0000

Seen: 10 times

Last updated: Jun 07 '23