我想使用N1ql将整个文档放入存储桶中 我的文件名称是CR_5031_114156723_2016-08-02,其他CR文件的其他文件将因不同的文件而异。
I tried with below 2 query but getting only OrderDetails details
select d.* from Delivery.OrderDetails d where d.orderId in ['114156723']
select d.*,Delivery.OrderLines from Delivery.OrderDetails d where d.orderId in ['114156723']
Delivery is my bucket Name
Below is the document
Please help me in writing a query to get entire document
{
"OrderDetails": {
"orderId": "114156737",
"vanNumber": "5J",
"voucherPromotionName": "Computers for Schools",
"customerNumber": "85516242",
"shortOrderNumber": "4692",
"VoucherName": "Clubcard Voucher"
},
"OrderLines": {
"Product": [
{
"isApplicableForVat": "N",
"productQuantity": "6",
"productId": "52599951",
"productDescription": "Ni Pstrd S/Skimmed Milk 3ltr "
},
{
"isApplicableForVat": "Y",
"productQuantity": "1",
"productId": "55771771",
"productDescription": "Dale Farm Vanilla Ice Cream 1ltr *"
}
]
},
"DeliveryDetails": {
"deliverySlotStartTime": "20:00",
"deliverySlotEndTime": "21:00"
},
"ECoupons": {
"coupon": "0.0000"
},
"_class": "com.model.CustomerReceipt",
"OutOfStockProducts": {},
}
我尝试了以下2个查询,但只获得了OrderDetails详细信息 从Delivery.OrderDetails d中选择d。*,其中d.orderId在['114156723']中
select d.*,Delivery.OrderLines from Delivery.OrderDetails d where d.orderId in ['114156723']
Delivery is my bucket Name
由于
答案 0 :(得分:1)
执行此操作以获取完整文档:
从交货d中选择d,其中d.OrderDetails.orderId在[' 114156723']
中