Not sure what's happening but when I use fawn (viasave) to update a document overriding exiting values to undefined, it's restored to the original value. Transaction results are ok and can't see the deleted value but don't know where is restored.
transaction.run({useMongoose: true}).then((results) => {
//results[0] is {name: "MyName"} but if I query db is {name: "MyName", description: "Hello"}
});
Not sure what's happening but when I use fawn (viasave) to update a document overriding exiting values to undefined, it's restored to the original value. Transaction results are ok and can't see the deleted value but don't know where is restored.
Eg:
Before: {name: "MyName", description: "Hello"} After: {name: "MyName"}