Change
When saving Blini diffs the current document with the loaded version to only update required fields.
a.compareWith(b)
can be use to compare a document version with another one, it returns a list of changes to transform a
in to b
.
Properties
type
may be Change.TYPES.SET
or Change.TYPES.UNSET
.
toMongo
toMongo
toMongo(changes: List<Change>): Object
Convert a list of changes into a MongoDB update's body.
Last updated