set

fun set(key: String, node: JsonNode): JsonCrdt

Set key to node, returning the updated document.

If the key already exists, its current value is merged with node via JsonNode.piece — a put is additive within the node's own lattice. This matches ORMap.put's semantics and preserves the add-wins invariant for nested structure.

Throws

if the document was not configured with a replica id (i.e. it was deserialized and withReplica was not called beforehand).