私はmongoDBデータベースを使用しています。以下の形式のコレクションがあります。
{ name : name1 , area: a , country : c}
{ name : name2 , area: b , country : c}
{ name : name3 , area: a1 , country : c1}
{ name : name4 , area: b1 , country : c1}
私は次のようなクエリが欲しい
select * from coll where (country =c and area =a) or (country = c1 and area = b1)
mongodbクエリで。
私は多くの文書を読みましたが、適切な答えが見つかりませんでした。
ですから、誰か知っているなら返信してください。
ありがとう