Thanks Frank.
If my document is nested and the array is present at a different level, how do we mention the path in the update query. I am using the N1QL mentioned here Removing elements in a JsonArray
My document is similar to shown below :
{
"root_path":{
"level_1":{
"level_2":{
"contents":[
{
"field1":"value1",
"field2":"value2",
"field3":"value3"
},
{
"field1":"value1",
"field2":"value2",
"field3":"value3"
}
]
}
}
}
}
Please help me out with N1QL to query the contents array on level_2.