If I have the following document for example:
{
“make”:“BMW”,
“make1”:“AUDI”
}
When I do an UPDATE query UPDATE Translations SET make2
= “MERCEDES” WHERE META().id = “CARS” , there is no problem with the query and make2 is added to the document.
When I do an UPDATE query UPDATE Translations SET make2
.MODEL
= “CLS”, make2
.MODIFICATION
= “500” WHERE META().id = "CARS"
The query returns “sucess”, but nothing is added. If make2 already exists everything is updated as expected, the problem only appears if the object does not exist.