Perform a diff between two objects expressed as MongoDB operations
Component to perform a diff between two objects expressed as MongoDB operations.
var diff = ;// diff two arrays using set strategy/*[['pull', 'a'],['push', 'a']]*/
// [['unset', 1]]// [['inc', 4]]
diff// [['set', 'b']]diff// [['unset', 1]]
Expresses differences as
diff// [['inc', 1], ['inc', 1], ['inc', 1]]
intervalincrement interval. If
nullthe interval defaults to the difference between the numbers (
Expresses differences between numbers in terms of
diff;// [['push', 'a']]
Expresses the difference between arrays as a series of
operations. Useful to match differences on arrays that are used with
$addToSet MongoDB operation.