I have one class which was having data member as List.
Due to requirement changes now I have updated the Structure of the class from
List<String> to Map<String, List<String>
Earlier structure of class was
Class Document{
List<String> doc;
}
Now Class is like
Class Documents{
Map<String,List<String>> doc;
}
I have Created a CouchBase query to update the existing record with the latest class structure.
My Query
update <bucketName> p
SET p.document.doc.["temp"] = p.document.doc
where p.applicationId = "13";