[SERVER-23898] How to remove the empty array in aggregation Created: 25/Apr/16  Updated: 25/Apr/16  Resolved: 25/Apr/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 3.3.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: shibimukesh Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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



 Comments   
Comment by Kelsey Schubert [ 25/Apr/16 ]

Hi shibish,

Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.

Kind regards,
Thomas

Generated at Thu Feb 08 04:04:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.