How do i create aggregation like below in compass…I somehow find it easy to create aggregation in compass by adding stages such as $match, $project etc and just export the python code. I am not sure how would i create something like below in compass…
writers: {
$map: {
input: “$writers”,
as: “writer”,
in: {
$arrayElemAt: [
{
$split: [ “$$writer”, " (" ]
},
0
]
}
}
}
-Jatin