我的聚合管道中具有以下结构数组。尝试合并对象和setUnion运算符。
{
combs:[
[
{
name:"A",
c_type:"A"
},
{
type:"visual",
severity:"Normal"
}
],
[
{
name:"B",
c_type:"B"
},
{
type:"visual",
severity:"Normal"
}
]
]
}
Run Code Online (Sandbox Code Playgroud)
我期望以下结果能产生一些统计数据。请帮我。
{
combs:[
{
name:"A",
c_type:"A",
type:"visual",
severity:"Normal"
}
{
name:"B",
c_type:"B",
type:"visual",
severity:"Normal"
}
]
}
Run Code Online (Sandbox Code Playgroud)