Код: Выделить всё
{
"id": "9295a327-wert-434f-34r5-f89e9d05a800",
"Name": "NAME_NAME",
{
"users":{
"4f5c0361-377f-4fa3-b18f-asdffe60b806": {
"FullName": "Full Name",
"EmailID": "Full.Name@mail.com"
}
}
}
Ниже приведен код Java, который я использую:
Код: Выделить всё
PartitionKey partitionKey = new PartitionKey("key");
CosmosPatchOperations operations = CosmosPatchOperations.create();
operations.add("/users/".concat("id"),
new HashMap() {{
put("FullName", user.getFullName());
put("EmailID", user.emailID);
}});
GroupEntity patch = cosmosTemplate.patch("id", partitionKey, Entity.class,
operations);
Подробнее здесь: https://stackoverflow.com/questions/790 ... -for-patch
Мобильная версия