# 合并列表
project = {
            "dimension_key": 1,
            "dimension_value": 1,
            "amount": 1,
            "hospital_list":{
                "$reduce":{
                    "input":"$hospital_list",  # 列表套列表
                    "initialValue":[],
                    "in":{"$concatArrays":["$$value","$$this"]}
                }
            },
        }

posted on 2022-01-24 15:54  Afrafre  阅读(37)  评论(0编辑  收藏  举报