在 mongo db 我有以下内容: db.users:
{ username: "me",
companies: {
meco:
{groups:
['addr1','addr2','addr3']
}
,
youco:
{groups:
['addr1','addr4']
}
},
someco:
{groups:
['addr8','addr9']
}
}
}
我正在尝试查找所有具有 (company=meco & group 有 'addr1') 或 (company=youco & group 有 addr4) 的用户。我该怎么做?谢谢,