Returns true
if the draft has changed compared to the original object, false
otherwise.
Partially commits current draft changes to the original object. If the path cannot be resolved in either the draft or the original object it will throw. Note that model IDs are checked to be the same when resolving the paths.
Path to commit.
Returns true
if the value at the given path of the draft has changed compared to the original object.
If the path cannot be resolved in the draft it will throw.
If the path cannot be resolved in the original object it will return true
.
Note that model IDs are checked to be the same when resolving the paths.
Path to check.
Partially resets current draft changes to be the same as the original object. If the path cannot be resolved in either the draft or the original object it will throw. Note that model IDs are checked to be the same when resolving the paths.
Path to reset.
A class with the implementationm of draft. Use
draft
to create an instance of this class.Typeparam
T Data type.