1
最初のコレクションに格納されているIDの2番目のコレクションからデータをフェッチしたいとします。 たとえば、2つのコレクションcollectionAとcollectionBがあります。私はこのデータを持っているcollectionAで2番目のコレクションからデータをフェッチする集約
:収集Bで
{
"aid" : "afa6ad98adf5adf",
"cid" : "collectionBid132"
},
{
"aid" : "9sd5ds9ds5sd98",
"cid" : "collectionBid895"
},
{
"aid" : "a98asd4f6a7afd",
"cid" : "collectionBid654"
}
を私はこのデータを持っている:
{
"cid" : "collectionBid132",
"cData" : "cDataBid132"
},
{
"cid" : "collectionBid895",
"cData" : "cDataBid895"
},
{
"cid" : "collectionBid654",
"cData" : "cDataBid654"
}
は、今私は"cData" from collectionB where cid = "collectionBid895" in collectionA
の値を取得したいです。
どのように集約を使用できますか?