Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3278

Add clarifying documentation to withTransaction about return type and when it throws

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 3.6.6
    • Component/s: None

      In 3.6 we should document that withTransaction returns a command result if it was successful and undefined if the transaction was intentionally aborted. And otherwise throws if there is an error during the transaction. Additionally we should clarify which sessions helpers return promises, e.g. endSession returns a promise if no callback is passed.

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: