Skip to content

Commit 1f152be

Browse files
authored
fixes table error (#1400)
1 parent df35f1f commit 1f152be

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

source/reference/change-events.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ following table describes each field in the change stream response document:
8686
<view-fcv>` at the time of the change stream's
8787
opening/resumption. See :ref:`change-stream-resume-token` for the
8888
full list of ``_data`` types.
89-
89+
9090
See :ref:`change-stream-resume` for an example of resuming a
9191
change stream by ``resumeToken``.
9292

@@ -170,7 +170,6 @@ following table describes each field in the change stream response document:
170170
* - ``to.db``
171171
- string
172172
- The new name of the database.
173-
-
174173

175174
* - ``to.coll``
176175
- string
@@ -315,7 +314,7 @@ following table describes each field in the change stream response document:
315314
* - ``operationDescription.to.db``
316315
- string
317316
- Indicates the new dataname name of the renamed collection.
318-
317+
319318
.. versionadded:: 6.0
320319

321320
* - ``operationDescription.to.coll``
@@ -356,7 +355,7 @@ following table describes each field in the change stream response document:
356355
transaction </core/transactions>`, the associated change stream
357356
notifications will have the same ``clusterTime`` value, namely
358357
the time when the transaction was committed.
359-
358+
360359
On a sharded cluster, events that occur on different shards can
361360
have the same ``clusterTime`` but be associated with different
362361
transactions or even not be associated with any transaction. To
@@ -375,7 +374,7 @@ following table describes each field in the change stream response document:
375374

376375
.. versionadded:: 6.0
377376

378-
* - ``txnNumber``
377+
* - ``txnNumber``
379378
- NumberLong
380379

381380
- The transaction number.
@@ -409,15 +408,15 @@ The following example illustrates an ``insert`` event:
409408
clusterTime: <Timestamp>,
410409
wallTime: <ISODate>,
411410
ns: {
412-
db: 'engineering',
411+
db: 'engineering',
413412
coll: 'users'
414413
},
415414
documentKey: {
416-
userName: 'alice123',
415+
userName: 'alice123',
417416
_id: ObjectId("599af247bb69cd89961c986d")
418417
},
419418
fullDocument: {
420-
_id: ObjectId("599af247bb69cd89961c986d"),
419+
_id: ObjectId("599af247bb69cd89961c986d"),
421420
userName: 'alice123',
422421
name: 'Alice'
423422
}
@@ -444,8 +443,8 @@ The following example illustrates an ``update`` event:
444443
operationType: 'update',
445444
clusterTime: <Timestamp>,
446445
wallTime: <ISODate>,
447-
ns: {
448-
db: 'engineering',
446+
ns: {
447+
db: 'engineering',
449448
coll: 'users'
450449
},
451450
documentKey: {
@@ -473,8 +472,8 @@ opened with the ``fullDocument : updateLookup`` option:
473472
operationType: 'update',
474473
clusterTime: <Timestamp>,
475474
wallTime: <ISODate>,
476-
ns: {
477-
db: 'engineering',
475+
ns: {
476+
db: 'engineering',
478477
coll: 'users'
479478
},
480479
documentKey: {
@@ -490,7 +489,7 @@ opened with the ``fullDocument : updateLookup`` option:
490489
"newSize" : 36
491490
} ]
492491
},
493-
fullDocument: {
492+
fullDocument: {
494493
_id: ObjectId("58a4eb4a30c75625e00d2820"),
495494
name: 'Alice',
496495
userName: 'alice123',
@@ -522,19 +521,19 @@ The following example illustrates a ``replace`` event:
522521
clusterTime: <Timestamp>,
523522
wallTime: <ISODate>,
524523
ns: {
525-
db: 'engineering',
524+
db: 'engineering',
526525
coll: 'users'
527526
},
528-
documentKey: {
527+
documentKey: {
529528
_id: ObjectId("599af247bb69cd89961c986d")
530529
},
531530
fullDocument: {
532-
_id: ObjectId("599af247bb69cd89961c986d"),
531+
_id: ObjectId("599af247bb69cd89961c986d"),
533532
userName: 'alice123',
534533
name: 'Alice'
535534
}
536535
}
537-
536+
538537
A ``replace`` operation uses the update command, and consists of two stages:
539538

540539
- Delete the original document with the ``documentKey`` and

0 commit comments

Comments
 (0)