save

Apply the changes to the entity.

This method builds the patch and applies the changes.

Signature

This method has the following signature:

patch.save(): Promise<Event>

The return is a Promise that resolves to the event that records the changes.

Example

Here is a basic example of how to use this method:

patch.set('address.city', 'New York')
.save()
.then(() => console.log('Patch successfully sent'));