[JAVA-2632] Add documentKey property to ChangeStreamDocument Created: 11/Oct/17  Updated: 29/Oct/23  Resolved: 02/Nov/17

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: None
Fix Version/s: 3.6.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-2646 ChangeStreamDocument missing _id info... Closed
Epic Link: Java MongoDB 3.6 Support

 Description   

Change stream documents contain a documentKey field, e.g.:

{ 
  "_id" : { "clusterTime" : { "ts" : { "$timestamp" : { "t" : 1507742913, "i" : 3 } } }, "uuid" : { "$binary" : "FU854jJaEhGqQ+hPGNe9uA==", "$type" : "03" }, "documentKey" : { "_id" : 0 } }, 
  "operationType" : "insert",
  "fullDocument" : { "_id" : 0, "str" : "0" }, "ns" : { "db" : "test", "coll" : "changes" },
  "documentKey" : { "_id" : 0 } }

But there is no corresponding documentKey property in ChangeStreamDocument.



 Comments   
Comment by Githook User [ 02/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2632: Add documentKey to ChangeStreamDocument
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/f609a858f46dd9a1dd32f338f27e9ceb84e89c59

Generated at Thu Feb 08 08:57:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.