I observed during the implementation of #23 that the input validation (i.e. checking an enum of acceptable values) is only run when an entity is first added to a collection. If you want to use a bogus value in an update that is totally OK... well for us it isn't OK but mongoose has no issue with it.
We need to A) research full mongoose driven validation or B) implement our own validation if nothing is found... I hope we find something.
~issue - Mongo Validation insufficient
Description
I observed during the implementation of #23 that the input validation (i.e. checking an enum of acceptable values) is only run when an entity is first added to a collection. If you want to use a bogus value in an update that is totally OK... well for us it isn't OK but mongoose has no issue with it.
We need to A) research full mongoose driven validation or B) implement our own validation if nothing is found... I hope we find something.