cognitom / momy

MongoDB to MySQL replication
https://www.npmjs.com/package/momy
MIT License
98 stars 37 forks source link

Doesn't sync when the doc is updated without $set or $unset #4

Closed cognitom closed 7 years ago

cognitom commented 7 years ago

Oops..., I'll fix it asap.

collection.insert({a:1, b:2})

// OK
collection.update({a:1}, {$set:{b:3}})

// NG
collection.update({a:1}, {a:1, b:3})