mogodb查询数据

有个数据操作没有找到相应的办法解决,求助下各位大神

如下数据结构

{
    name:'xx',
    infos:{
        pc:{
            p1:{
                status:true,
                code:'123'
            },
            p2:{
                status:false,
                code:'3323'
            }
        },
        app:{
            a1:{
                status:false,
                code:'989'
            },
            a2:{
                status:true,
                code:'876'
                }
        }
    }
}

如何才能查询到 pc下面status为true的那项数据 即  p1:{status:true,code:'123'} 

已知条件 pc  status:true



SP槑喆
浏览 1861回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP