Sync
methodsSaves any data item changes.
The sync method will request the remote service if:
- The
transport.createoption is set and the data source contains new data items. - The
transport.destroyoption is set and data items have been removed from the data source. - The
transport.updateoption is set and the data source contains updated data items.
Returns:Promise
—A promise that will be resolved when all sync requests have finished successfully, or rejected if any single request fails.