Node.JS change stream resume token example has a typo

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Docs
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description

      When looking at https://docs.mongodb.com/manual/changeStreams/#resume-a-change-stream the Node.js example has the following code where the resumeAfter is the only word in the document

        newChangeStream = collection.watch({ resumeAfter });
        newChangeStream.on('change', next => {
          // process next document
        });

      While I believe it was meant to be:

        newChangeStream = collection.watch({ "resumeAfter" :  resumeToken });
        newChangeStream.on('change', next => {
          // process next document
        });

      FYI

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            Daniel Aprahamian (Inactive)
            Reporter:
            Pavel Duchovny
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: