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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: 3.6.6
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Neal Beeken
              None
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: