can't export aggregation result
Hi
I have a query that produced a successful tabular result (4 columns of 9600 rows), but when I use menu option 'Export' > 'Export to JSON etc' and specify the path etc for my CSV file, nothing is actually exported. I see the final message as (file names swapped out):
export 0 docs from <file>.js to <exported>.csv finished.
I was in a rush to deliver a result, so I swapped to another GUI tool, and pasted in my query, and could successfully export from there.
The query is like the following
db.xxx.aggregate([
{
"$match": { ... }
},
{ $unwind: ... },
{ $unwind: ... },
{
"$match": { ... }
},
{
"$match": { ... }
},
{
"$group": { ... }
},
{
$sort: { ... }
},
{
"$project": { ... }
}
]
)
Thanks.
Thanks for opening your first issue here! If you're reporting a bug, please make sure you include steps to reproduce it.
Thanks for opening your first issue here! If you're reporting a bug, please make sure you include steps to reproduce it.
I tried to do some tests locally, but can't recall this issue. It's inefficient to solve the problem by guessing, so I can only set the status to "Can not reproduce".
I tried to do some tests locally, but can't recall this issue. It's inefficient to solve the problem by guessing, so I can only set the status to "Can not reproduce".
Replies have been locked on this page!