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

How to remove the empty array in aggregation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.3.2
    • Aggregation Framework
    • None
    • ALL

    Description

      { "_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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: