i have a csn array in my document as shown below. i want to delete a perticular element using MutateIn.Remove() method:
“opldCns”: [
{
“bpyAtnNa”: “”,
“bpyCoNa”: “JOHN MAPLES”,
“lstSmtDt”: “08-23-18 07:56:34”,
“pkgQy”: 1
},
{
“bpyAtnNa”: “”,
“bpyCoNa”: “JOHN MAPLES”,
“lstSmtDt”: “08-22-18 07:56:34”,
“pkgQy”: 1
},
{
“bpyAtnNa”: “”,
“bpyCoNa”: “JOHN MAPLES”,
“lstSmtDt”: “11-21-17 07:56:34”,
“pkgQy”: 1
},
{
“bpyAtnNa”: “”,
“bpyCoNa”: “JOHN MAPLES”,
“lstSmtDt”: “02-12-19 07:56:34”,
“pkgQy”: 1
}
]
I have tried as below but it is deleting the entire array i want to delete a specific element how i can achieve that
var status = servicePointBucket.MutateIn(“docid”)
.Remove(“cns”).Execute().Status;
I am able to do this using update N1QL query but i want to do this using MutateIn please help…