How to remove the empty array in aggregation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.3.2
    • Component/s: Aggregation Framework
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      { "_id" : 14, "default":15, "passengers_log" : [ ] }

      how to remove the "passengers_log" : [ ] empty array i need the result like

      { "_id" : 14, "default":15, }

      if i use unwind the whole document is getting vanished

            Assignee:
            Unassigned
            Reporter:
            shibimukesh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: