select only subdocuments or arrays

后端 未结 5 701
情书的邮戳
情书的邮戳 2021-02-06 14:59
{
    \"_id\":{
        \"oid\":\"4f33bf69873dbc73a7d21dc3\"
    },
    \"country\":\"IND\",
    \"states\":[{
            \"name\":\"orissa\",
            \"direction\"         


        
5条回答
  •  死守一世寂寞
    2021-02-06 15:06

    You can't do it right now, but you will be able to with $unwind in the aggregation framework. You can try it now with the experimental 2.1 branch, the stable version will come out in 2.2, probably in a few months.

提交回复
热议问题