-
Type: Task
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
Problem
Fields can be set "Optional", therefore the field with null as value will be saved in MongoDB.
I prefer to not save the field at all and unset it instead.
Solution
Add a 'unsetWhenNull' annotation/SchemaProperty for class level and class member level. This indicates to have the property/field not stored in database when value is null.
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Atlas Device Sync