Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23898

How to remove the empty array in aggregation

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

      { "_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 Unassigned
            Reporter:
            shibish shibimukesh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: