I want update sub-document where shipmentId(595e2cf358d92912c88e37bd), is this . How i can updated this
{
"_id" : ObjectId("595e12c358d92912c88e3782"),
"Order_Id" : NumberInt(72),
"ProductDetail" : [
{
"_id" : ObjectId("595e12c658d92912c88e3786"),
"productID" : ObjectId("5953acf40d3c3dbf1ece2ce3"),
"retailerID" : ObjectId("5953a5bb0d3c3dbf1ece2ce2"),
"storeID" : ObjectId("5953ac5c08388cab1ec567d0"),
"variationID" : ObjectId("5953ad6d0d3c3dbf1ece2ce4"),
"quantity" : NumberInt(1),
"price" : NumberInt(1),
"itemPrice" : NumberInt(1),
"sku" : "1",
"payment_percentage" : NumberInt(10),
"price_to_be_paid" : 0.1,
"pickupId" : "0",
"shipment_status" : "failure",
"dispute_status" : NumberInt(0),
"shipmentId":ObjectId("595e2cf558d92912c88e37bf"),
}
,
{
"_id" : ObjectId("595e12c658d92912c88e3785"),
"productID" : ObjectId("595cc197002b253354e5477a"),
"retailerID" : ObjectId("595cbbf7d1cef348665631e0"),
"storeID" : ObjectId("595cbe97562306b24a4f5914"),
"variationID" : ObjectId("595cc2b21e9e309f6624072e"),
"quantity" : NumberInt(1),
"price" : NumberInt(1200),
"itemPrice" : NumberInt(1200),
"sku" : "7",
"payment_percentage" : NumberInt(10),
"price_to_be_paid" : NumberInt(120),
"pickupId" : "0",
"shipment_status" : "failure",
"dispute_status" : NumberInt(0),
"shipmentId":ObjectId("595e2cf358d92912c88e37bd"),
}
,
{
"_id" : ObjectId("595e1a8f58d92912c88e379c"),
"productID" : ObjectId("595b3760b7741545770b0342"),
"retailerID" : ObjectId("595b2ec6bccadf674373dc8a"),
"storeID" : ObjectId("595b2f513d8dda093191c72a"),
"variationID" : ObjectId("595b3837b7741545770b0343"),
"quantity" : NumberInt(1),
"price" : NumberInt(2148),
"itemPrice" : NumberInt(2148),
"sku" : "3",
"payment_percentage" : NumberInt(10),
"price_to_be_paid" : 214.8,
"pickupId" : "0",
"shipment_status" : "failure",
"dispute_status" : NumberInt(0),
"shipmentId":ObjectId("595e2cf358d92912c88e37bd"),
}
,
]
}