We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c59b18 commit 12ea239Copy full SHA for 12ea239
source/tutorial/change-streams-example.txt
@@ -359,7 +359,6 @@ more of the following pipeline stages when configuring the change stream:
359
- :pipeline:`$redact`
360
361
.. tabs-drivers::
362
-
363
tabs:
364
- id: java-sync
365
content: |
@@ -371,7 +370,7 @@ more of the following pipeline stages when configuring the change stream:
371
370
372
MongoDatabase db = mongoClient.getDatabase("myTargetDatabase");
373
374
- MongoCollection<Document> collection = database.getCollection("myTargetCollection");
+ MongoCollection<Document> collection = db.getCollection("myTargetCollection");
375
376
// Create $match pipeline stage.
377
List<Bson> pipeline = singletonList(Aggregates.match(Filters.or(
0 commit comments