1
我有兩個集合,分別叫做shop
和product
。'加入'DocumentDB集合(NoSQL)
Shop
樣子:
{
"id": "96-17",
"occasion": {
"pk": 17
},
"pk": 96,
"title": "Ebay",
"description": "Test Description",
"phone": "+1111111111",
"logo": {
"name": "shop.png",
"_links": {
"thumbnail": "https://test.server.com/image.png"
}
}
}
Product
樣子:
{
"id": "35671-17",
"occasion": {
"pk": 17
},
"pk": 35671,
"title": "Best tablet on earth.",
"hero": {
"name": "product.png",
"_links": {
"tile": "https://test.server.com/image.png"
}
"shop": {
"pk": 96,
"title": Ebay
}
}
}
我怎麼能得到從Product
集合中的所有產品的列表,以及 '加入' 的Shop
收集與product.shop.pk ON shop.id
?