Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-682

Update change stream docs example for resume token access

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Docs
    • Labels:
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PHPLIB-450 Fixed 1.5.0
      CXX-1794 Fixed 3.5.0
      MOTOR-355 Fixed 2.1
      CSHARP-2651 Fixed 2.10.0
      NODE-2028 Fixed 3.3.0
      PYTHON-1885 Fixed 3.9
      PERL-1112 Fixed 2.2.0
      GODRIVER-1164 Fixed 1.1.0
      JAVA-3337 Fixed 3.11.0
      RUBY-1856 Fixed 2.10.0.rc0
      CDRIVER-3207 Fixed 1.15.0
      SWIFT-546 Won't Do
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PHPLIB-450 Fixed 1.5.0 CXX-1794 Fixed 3.5.0 MOTOR-355 Fixed 2.1 CSHARP-2651 Fixed 2.10.0 NODE-2028 Fixed 3.3.0 PYTHON-1885 Fixed 3.9 PERL-1112 Fixed 2.2.0 GODRIVER-1164 Fixed 1.1.0 JAVA-3337 Fixed 3.11.0 RUBY-1856 Fixed 2.10.0.rc0 CDRIVER-3207 Fixed 1.15.0 SWIFT-546 Won't Do

      The spec change in DRIVERS-595 requires that drivers provide an API for exposing the current resume token, which may come from a change document or a postBatchResumeToken field. DRIVERS-634 builds upon that issue and adds more clarity around which value should be returned (and used for resuming).

      In DRIVERS-436, drivers added an example for accessing the resume token (example #3), which is published within https://docs.mongodb.com/manual/changeStreams/#resume-a-change-stream. This example should be updated to use whatever new API was introduced for 4.2 drivers in DRIVERS-595.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: