OptionaldecDecrement numeric fields by the given amount
OptionaldiffApply diff-match-patch operations
OptionalifOnly apply patch if document has this revision
OptionalincIncrement numeric fields by the given amount
OptionalinsertInsert items in arrays at specific positions
OptionalsetShallow merge of the provided object
OptionalsetSet fields only if they're not already present
OptionalunsetRemove fields from the document
Operations that can be applied in a patch. Used to modify existing documents.
Example