How do I determine why a MongoDB document is failing validation?
20
votes
2
answers
24065
views
How do I determine why a MongoDB document insert is failing validation? All I get back is a writeError that says "Document failed validation", which isn't very helpful.
(This happens often, and I'd like to understand how to properly debug these, rather than ask for help with a specific example.)
Asked by Jonathan Wheeler
(303 rep)
Aug 22, 2016, 11:38 PM
Last activity: Jul 13, 2018, 07:15 PM
Last activity: Jul 13, 2018, 07:15 PM