Skip to content

Commit 12ea239

Browse files
skerschbkay-kim
authored andcommitted
DOCSP-1910: fixed typo in java example
1 parent 3c59b18 commit 12ea239

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/tutorial/change-streams-example.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ more of the following pipeline stages when configuring the change stream:
359359
- :pipeline:`$redact`
360360

361361
.. tabs-drivers::
362-
363362
tabs:
364363
- id: java-sync
365364
content: |
@@ -371,7 +370,7 @@ more of the following pipeline stages when configuring the change stream:
371370

372371
MongoDatabase db = mongoClient.getDatabase("myTargetDatabase");
373372

374-
MongoCollection<Document> collection = database.getCollection("myTargetCollection");
373+
MongoCollection<Document> collection = db.getCollection("myTargetCollection");
375374

376375
// Create $match pipeline stage.
377376
List<Bson> pipeline = singletonList(Aggregates.match(Filters.or(

0 commit comments

Comments
 (0)