Optional
decDecrement numeric fields by the given amount
Optional
diffApply diff-match-patch operations
Optional
ifOnly apply patch if document has this revision
Optional
incIncrement numeric fields by the given amount
Optional
insertInsert items in arrays at specific positions
Optional
setShallow merge of the provided object
Optional
setSet fields only if they're not already present
Optional
unsetRemove fields from the document
Operations that can be applied in a patch. Used to modify existing documents.
Example