Couchbase partial update

Hello CB Team, I’ve a question about partial update. Lets assume i ve document like

{
    "hotel": {
        "name": "california",
        "customers": [
            {
                "name": "first person",
                "city": "city-5",
                "language": "TR"
            },
            {
                "name": "second person",
                "city": "city-2",
                "language": "EN"
            },
            {
                "name": "third person",
                "city": "city-1",
                "language": "TR"
            },
            {
                "name": "last person",
                "city": "city-1",
                "language": "TR"
            }
        ]
    }
}

i would like to update customers whose name is “last person” as
city = “city 1” and language = “Tr-tr” and whose name is “second-person” as city = “city 2” and language = “Tr-En” .In the documentation, we can update a field using mutateIn, but I did not see the option for both a condition and more than one field. Is there a way to do this? Or do you have another suggestion?

According to the documentation, path-syntax for subdocuments only supports paths and array indexes.
[Sub-Document Operations | Couchbase Docs]

I tried JsonPath paths with no success (JSONPath Syntax | AlertSite Documentation)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.