Open HenriChataing opened 10 years ago
Using MongoDb, updates on optional fields corrupt the database.
Test case : edited is an optional field of a record type stored in the database, and initially equals {none}. At some point, the field is updated :
edited
{none}
/path/to/[..]/edited <- {some: Date.now()}
With the following result, in MongoDb :
"edited" : { "none" : null, "some" : ISODate("2014-07-23T11:46:07.579Z") }
Using MongoDb, updates on optional fields corrupt the database.
Test case :
edited
is an optional field of a record type stored in the database, and initially equals{none}
. At some point, the field is updated :With the following result, in MongoDb :