云数据库数组加对象嵌套怎么匹配查询?
打个比方:云数据库(某一条队伍数据):
{
teamName:"A队"
joinPeople:[{name:"张伟",age:18},{name:"李华",age:22}]
}
我想找出张伟加入了的所有队伍,where里面该怎么写?
打个比方:云数据库(某一条队伍数据):
{
teamName:"A队"
joinPeople:[{name:"张伟",age:18},{name:"李华",age:22}]
}
我想找出张伟加入了的所有队伍,where里面该怎么写?