Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16731

[Server] $changeStream stage doc page has few inaccuracies

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: manual, Server
    • Labels:

      I am looking at version v7.0. Please check also past and future versions.

       

      Inaccuracy 1:  resumeAfter: <int>

      'resumeAfter' expects a resume token, so the type should be <document> similar to 'startAfter'.

      Inaccuracy 2: resumeAfter and startAfter have the same description; the difference between the two options is unclear.

      mongosh db.collection.watch() documentation does a bit better job:

       ** https://www.mongodb.com/docs/manual/reference/method/db.collection.watch/#mongodb-method-db.collection.watch

      Namely, 'resumeAfter' will fail while using the resume token of the 'invalidate' event, whilst 'startAfter' succeed.

            Assignee:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              18 hours, 10 minutes ago