-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation pipeline
-
None
-
Iteration Halloumi
Hello, I am trying to create the following aggregation pipeline but last step is not working.
[{ $match: /** * query - The query in MQL. */
{{Unknown macro: { codigoInternoDelContratoIuc }}}
}, { $project: /** * specifications - The fields to * include or exclude. */{ "codigoInternoDelContratoIuc":1, all_buck: { $concatArrays: [ {$ifNull: ['$online', []]},'$buckets'] }} },
Unknown macro: { $unwind}
, { $group: /** * _id - The id of the group. * field1 - The first field name. */{ _id: "$all_buck.codigoRmsOperacionExtendido", mov:
Unknown macro: { $mergeObjects}
, count:{$sum:1 }]}}
For mergeObjects is expecting [ ]... I have tried different version but it is not working. The same pipeline in the shell is working fine!
Thank you i advance,
Juan