addtoset() 集合 foo.bar 中原始记录如下所示。 本例将以 a 字段分组,得到集合 foo.bar 中记录的 a 字段相同时,所有 b 字段的取值。 { "a": 1, "b": [ 1 ]} "a": 2, "b": [ 2, 3 ]}Takes 0.6891s.