Update AggregateCursor "unwind" method to match the native driver

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.6.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the unwind method only support to pass the unwind path. The mongodb API is support two more options to pass.

      Current

      collection
        .aggregate()
        .unwind(
          // only support field name here
        )
      

      Improvement

      collection
        .aggregate()
        .unwind(
           // support passing object
          {
            path: path, // field name
            includeArrayIndex: 'string',
            preserveNullAndEmptyArrays: boolean
          }
        )
      

       

              Assignee:
              Eric Adum (Inactive)
              Reporter:
              KaKa NG
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: