> db.events.find()
{ "_id" : ObjectId("50911c3e09913b2c643f1215"), "context" : "jvc8irfjc9cdnf93", "key" : "value" }
{ "_id" : ObjectId("50911c4709913b2c643f1216"), "context" : "jvc8irfjc9cdnf93", "key" : "new value" }
{ "_id" : ObjectId("50911c4b09913b2c643f1217"), "context" : "jvc8irfjc9cdnf93", "key" : "newer value" }
{ "_id" : ObjectId("50911c4f09913b2c643f1218"), "context" : "jvc8irfjc9cdnf93", "key" : "newest value" }
{ "_id" : ObjectId("50911c6309913b2c643f1219"), "context" : "0djd8vcndkfnjhv3", "key" : "value" }
是 Mongo DB 服务器上的事件列表。客户端跟踪他知道的最后一个事件,例如50911c4709913b2c643f1216
第二个事件。
如何获取在这个已知事件之后插入的所有事件?在这种情况下50911c4b09913b2c643f1217
,50911c4f09913b2c643f1218
和50911c6309913b2c643f1219
。