You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to concat an array with another field. If I use normal update then I can use $push operator but in pipeline update I have to use $concatArrays. The problem is that I have to create array from a field reference but it is not possible because input string is replaced by just a field reference.
For example I have document:
I would like to concat an array with another field. If I use normal update then I can use
$push
operator but in pipeline update I have to use$concatArrays
. The problem is that I have to create array from a field reference but it is not possible because input string is replaced by just a field reference.For example I have document:
and as result I want to have:
I want to run this MongoDB Update pipeline:
I tried to rewrite it to:
but it is translated to:
I would use custom
AggregationExpresion
but it has to returnDocument
but this is unfortunately array.The text was updated successfully, but these errors were encountered: