Skip to content

Commit 922e63d

Browse files
authored
PYTHON-3093 Continuation of #972 (#976)
1 parent 02a9df6 commit 922e63d

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

pymongo/collection.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2553,13 +2553,15 @@ def watch(
25532553
pipeline stages are valid after a ``$changeStream`` stage, see the
25542554
MongoDB documentation on change streams for the supported stages.
25552555
- `full_document` (optional): The fullDocument to pass as an option
2556-
to the ``$changeStream`` stage. Allowed values: 'updateLookup'.
2557-
When set to 'updateLookup', the change notification for partial
2558-
updates will include both a delta describing the changes to the
2559-
document, as well as a copy of the entire document that was
2560-
changed from some time after the change occurred.
2561-
- `full_document_before_change`: Allowed values: `whenAvailable` and `required`. Change events
2562-
may now result in a `fullDocumentBeforeChange` response field.
2556+
to the ``$changeStream`` stage. Allowed values: 'updateLookup',
2557+
'whenAvailable', 'required'. When set to 'updateLookup', the
2558+
change notification for partial updates will include both a delta
2559+
describing the changes to the document, as well as a copy of the
2560+
entire document that was changed from some time after the change
2561+
occurred.
2562+
- `full_document_before_change`: Allowed values: 'whenAvailable'
2563+
and 'required'. Change events may now result in a
2564+
'fullDocumentBeforeChange' response field.
25632565
- `resume_after` (optional): A resume token. If provided, the
25642566
change stream will start returning changes that occur directly
25652567
after the operation specified in the resume token. A resume token

pymongo/database.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,15 @@ def watch(
593593
pipeline stages are valid after a ``$changeStream`` stage, see the
594594
MongoDB documentation on change streams for the supported stages.
595595
- `full_document` (optional): The fullDocument to pass as an option
596-
to the ``$changeStream`` stage. Allowed values: 'updateLookup', 'whenAvailable', 'required'.
597-
When set to 'updateLookup', the change notification for partial
598-
updates will include both a delta describing the changes to the
599-
document, as well as a copy of the entire document that was
600-
changed from some time after the change occurred.
601-
- `full_document_before_change`: Allowed values: `whenAvailable` and `required`. Change events
602-
may now result in a `fullDocumentBeforeChange` response field.
596+
to the ``$changeStream`` stage. Allowed values: 'updateLookup',
597+
'whenAvailable', 'required'. When set to 'updateLookup', the
598+
change notification for partial updates will include both a delta
599+
describing the changes to the document, as well as a copy of the
600+
entire document that was changed from some time after the change
601+
occurred.
602+
- `full_document_before_change`: Allowed values: 'whenAvailable'
603+
and 'required'. Change events may now result in a
604+
'fullDocumentBeforeChange' response field.
603605
- `resume_after` (optional): A resume token. If provided, the
604606
change stream will start returning changes that occur directly
605607
after the operation specified in the resume token. A resume token

pymongo/mongo_client.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -918,13 +918,15 @@ def watch(
918918
pipeline stages are valid after a ``$changeStream`` stage, see the
919919
MongoDB documentation on change streams for the supported stages.
920920
- `full_document` (optional): The fullDocument to pass as an option
921-
to the ``$changeStream`` stage. Allowed values: 'updateLookup'.
922-
When set to 'updateLookup', the change notification for partial
923-
updates will include both a delta describing the changes to the
924-
document, as well as a copy of the entire document that was
925-
changed from some time after the change occurred.
926-
- `full_document_before_change`: Allowed values: `whenAvailable` and `required`. Change events
927-
may now result in a `fullDocumentBeforeChange` response field.
921+
to the ``$changeStream`` stage. Allowed values: 'updateLookup',
922+
'whenAvailable', 'required'. When set to 'updateLookup', the
923+
change notification for partial updates will include both a delta
924+
describing the changes to the document, as well as a copy of the
925+
entire document that was changed from some time after the change
926+
occurred.
927+
- `full_document_before_change`: Allowed values: 'whenAvailable'
928+
and 'required'. Change events may now result in a
929+
'fullDocumentBeforeChange' response field.
928930
- `resume_after` (optional): A resume token. If provided, the
929931
change stream will start returning changes that occur directly
930932
after the operation specified in the resume token. A resume token

0 commit comments

Comments
 (0)