Update does not update if required fields are not set
jewzaam opened this issue · 1 comments
jewzaam commented
Tried updating a document today and it didn't fail. Match count is 0 but updated count is 1. No error in the response. Went to logs and saw an ERROR for my update request saying a required field was not set. Two issues.
- this shouldn't stop the update probably
- if it does stop the update, it should propagate up to the caller!
paterczm commented
- Introduce a concept of a default value. Can use existing value generator api to handle it. That's in addition to sending an error to the caller if there is no default and required value was not provided.