DataReply / kafka-connect-mongodb

Apache License 2.0
129 stars 61 forks source link

No _id when updating by query. Bug Fix. #28

Open gjanitt opened 6 years ago

gjanitt commented 6 years ago

Link to the Issue https://github.com/DataReply/kafka-connect-mongodb/issues/25

In case of update, "o" in mongo oplog doesn't contain _id. It is present in "o2". Hence included "o2" in the projections from oplog document and added _id from "o2" to "o" when "o" doesn't contain _id.