-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Component/s: Docs Examples
-
None
Similar to what we did for the crud examples, if all the drivers could implement the following changestream examples which the docs team can extract:
We'll use the inventory collection.
The examples are from the java examples from Aly's POD.
// Start Changestream Example 1 MongoCursor<Document> cursor = inventory.watch().iterator(); Document next = cursor.next(); // End Changestream Example 1
// Start Changestream Example 2 MongoCursor<Document> cursor = inventory.watch().fullDocument(FullDocument.UPDATE_LOOKUP).iterator(); Document next = cursor.next(); // End Changestream Example 2
// Start Changestream Example 3 Document resumeToken = next.get("_id", Document.class); MongoCursor<Document> cursor = inventory.watch().resumeAfter(resumeToken).iterator(); cursor.next(); // End Changestream Example 3
- depends on
-
RUST-43 ChangeStreams Examples for Docs
- Closed
-
CDRIVER-2323 ChangeStreams Examples for Docs
- Closed
-
CSHARP-2064 ChangeStreams Examples for Docs
- Closed
-
CXX-1450 ChangeStreams Examples for Docs
- Closed
-
JAVA-2634 ChangeStreams Examples for Docs
- Closed
-
NODE-1159 ChangeStreams Examples for Docs
- Closed
-
PHPLIB-289 ChangeStreams Examples for Docs
- Closed
-
PYTHON-1393 ChangeStreams Examples for Docs
- Closed
-
RUBY-1248 ChangeStreams Examples for Docs
- Closed
- related to
-
DRIVERS-398 Change stream support
- Closed
-
DRIVERS-436 Add pipeline stage to ChangeStreams example for Docs
- Closed