@@ -65,7 +65,7 @@ classes:
6565- ``Collection``: To monitor changes in the collection
6666
6767The following example opens a change stream on the ``restaurants`` collection
68- and outputs the type of changes as they occur. Select the
68+ and outputs the operation type of changes as they occur. Select the
6969:guilabel:`Asynchronous` or :guilabel:`Synchronous` tab to see the corresponding
7070code.
7171
@@ -233,22 +233,23 @@ Include Pre-Images and Post-Images
233233By default, when you perform an operation on a collection, the
234234corresponding change event includes only the delta of the fields
235235modified by that operation. To see the full document before or after a
236- change, specify the ``FullDocumentBeforeChange`` or the ``FullDocument``
237- parameters in the ``Watch()`` or ``WatchAsync()`` method.
236+ change, create a ``ChangeStreamOptions`` object and specify the
237+ ``FullDocumentBeforeChange`` or the ``FullDocument`` options. Then, pass the
238+ ``ChangeStreamOptions`` object to the ``Watch()`` or ``WatchAsync()`` method.
238239
239240The **pre-image** is the full version of a document *before* a change. To include the
240241pre-image in the change stream event, set the ``FullDocumentBeforeChange``
241- parameter to one of the following values:
242+ option to one of the following values:
242243
243244- ``ChangeStreamFullDocumentBeforeChangeOption.WhenAvailable``: The change event
244245 includes a pre-image of the modified document for change events only if the
245246 pre-image is available.
246- - ``ChangeStreamFullDocumentBeforeChangeOption.ChangeStreamFullDocumentOption. Required``:
247+ - ``ChangeStreamFullDocumentBeforeChangeOption.Required``:
247248 The change event includes a pre-image of the modified document for change
248249 events. If the pre-image is not available, the driver raises an error.
249250
250251The **post-image** is the full version of a document *after* a change. To include the
251- post-image in the change stream event, set the ``full_document `` parameter to
252+ post-image in the change stream event, set the ``FullDocument `` option to
252253one of the following values:
253254
254255- ``ChangeStreamFullDocumentOption.UpdateLookup``: The change event includes a
@@ -261,7 +262,7 @@ one of the following values:
261262 not available, the driver raises an error.
262263
263264The following example opens a change stream on a collection and includes the post-image
264- of updated documents by specifying the ``FullDocument`` parameter . Select the
265+ of updated documents by specifying the ``FullDocument`` option . Select the
265266:guilabel:`Asynchronous` or :guilabel:`Synchronous` tab to see the corresponding
266267code.
267268
0 commit comments