UPDATE
the update update operation modifies the content of existing documents in a collection with an update update statement, you can update specific fields within the documents based on specified conditions dql update your collection name set field1 = value1, field2 > \[mutator], where \[condition] in this syntax your collection name is the name of the collection in which you want to update data field1 = value1, field2 > \[mutator], represents the fields to be updated and their corresponding new value or functional mutator \[condition] is the expression or set of conditions that determine which documents should be included in the result set basic update here is an example of a basic update update operation dql update your collection name set field1 = 'blue' where id = '123' update multiple fields the following snippet shows an example update update setting multiple fields dql update your collection name set field1 = 'blue', field2 = 0 where id = '123' update with map type when updating fields nested in a map , specify the field value pairs you want to update for map syntax, see ditto query language > types and definitions > docid 4f33y uq6cbwfsm0h7aq dql update collection your collection name (field2 map) set field2 > ( sub1 = 2, sub2 = 'spring' ) where field1 = 'red' flagging fields as removed in dql, you can mark a field as a tombstone a tombstone is a flag signaling to remote peers that the field is deleted from the local ditto store in ditto, when performing an operation like an update update , excluding fields from your payload does not remove the existing data from the system in other words, ditto ignores any fields you've omitted from your payload and therefore they remain unchanged by that particular operation to set a field as a tombstone, use the syntax \[field] > tombstone() as follows dql update your collection name set your field name > tombstone() where id = '123' setting a map as a tombstone using the tombstone() functional operation, you can mark a map data type as deleted when a map is tombstoned, a metadata property is internally set on the field and all the data within the map is removed this is done by iterating through all the fields in the map and calling tombstone on those fields for register and attachment data types within the map , flagging values with tombstone results in their deletion dql update collection cars (properties map) set properties > tombstone() where id = '123' for more information and how to instructions, see docid\ l4gtgdvu5f3wrnuhylvut > docid\ ht6kltecy3izo8jo34ga3 > docid\ ht6kltecy3izo8jo34ga3