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

Update Node.js transaction examples

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Native
    • Labels:
      None

      Currently, we have transactions docs examples have indexOf < 0

      if ( error.errorLabels && error.errorLabels.indexOf('TransientTransactionError') < 0 )
      
      if ( error.errorLabels && error.errorLabels.indexOf('UnknownTransactionCommitResult') < 0 ) 
      

      Should be >= 0

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: