摘要: 需要 MongoDB 3.6 及以上, 需要 ReplicaSet 模式。 监听一个字段的变化: 例如监听字段 name: func watch(coll *mongo.Collection) { match := bson.D{{"operationType", "update"}, {"upda 阅读全文
posted @ 2019-09-11 20:45 水郁 阅读(2586) 评论(2) 推荐(0) 编辑
……