Skip to content

Commit e7c8c91

Browse files
typo
1 parent c59ae31 commit e7c8c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/code-examples/change-streams/change-streams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ await cursor.ForEachAsync(change =>
7878
{
7979
foreach (var change in cursor.ToEnumerable())
8080
{
81-
Console.WriteLine(changeFullDocument.ToBsonDocument());
81+
Console.WriteLine(change.FullDocument.ToBsonDocument());
8282
}
8383
}
8484
// end-change-stream-post-image
@@ -95,6 +95,6 @@ await cursor.ForEachAsync(change =>
9595
using var cursor = await _restaurantsCollection.WatchAsync(pipeline, options);
9696
await cursor.ForEachAsync(change =>
9797
{
98-
Console.WriteLine(changeFullDocument.ToBsonDocument());
98+
Console.WriteLine(change.FullDocument.ToBsonDocument());
9999
});
100100
// end-change-stream-post-image-async

0 commit comments

Comments
 (0)