Fix return type of withTransaction

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a... Driver engineer
      I want... to fix the return type of withTransaction
      So that... linting and code hinting works correctly

      User Impact

      • N/A

      Dependencies

      • N/A

      Unknowns

      • N/A

      Acceptance Criteria

      Implementation Requirements

      • Change return type from Promise<Document | undefined> to Promise<T|undefined>

      Testing Requirements

      • Add type test for withTransaction that ensures that its generics work correctly

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • N/A

            Assignee:
            Warren James
            Reporter:
            Warren James
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: