tulip / oplogtoredis

Publish MongoDB oplog entries to Redis
Apache License 2.0
38 stars 9 forks source link

Support mongo records that use ObjectID instead of string IDs #9

Closed benweissmann closed 6 years ago

benweissmann commented 6 years ago

By default, Meteor uses string IDs rather than Mongo's default ObjectIDs. We don't currently support ObjectIDs, but https://github.com/cult-of-coders/redis-oplog/pull/262 adds support in redis-oplog so we should add support here, too.

benweissmann commented 6 years ago

Correct behavior is to take the objectid, encoded as hex, and use that as if it were a string in the _id field.

theodorDiaconu commented 6 years ago

2018-04-23T15:36:10.282+0300 ERROR oplogtoredis/main.go:107 op.ID was not a string {"id": "ObjectIdHex(\"97ae7d05ac945b152789e474\")"}