我有一个产品,这个产品有多个国家。所以我想在 mongo 存储库中删除相应的国家。那么如何从 spring 数据 mongodb 存储库中删除。请在下面找到我的 JSON。
{ "_id" : ObjectId("565e0e1758da2b685eef727f"),
"offeringId" : "PMRS674913",
"offeringType" : "FEATURE",
"service" : "HBOGO",
"countries" : [
{
"country" : "OTT",
"isoCode" : "124",
"startDate" : "2015-01-01T00:00:00.000-05:00",
"endDate" : "2015-01-31T00:00:00.000-05:00"
},
{
"country" : "United States",
"isoCode" : " 456",
"startDate" : "2015-01-01T00:00:00.000-05:00",
"endDate" : "2015-01-31T0000:00.000-05:00"
}
]
}