Sync v5.0.0 Release Notes

Release Date: 2018-08-23 // over 3 years ago
    • ➕ Added support for extended operation options #433

    ⚡️ Before you could set insert, update and delete operations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using insertRelationships, updateRelationships and deleteRelationships.

    🍱 ⚠️ Breaking change ⚠️

    ⚡️ If you were using the .insert, .update, or .delete options now you'll also need to set .insertRelationships, .updateRelationships or . deleteRelationships based on what are your needs.

    0️⃣ If you weren't using OperationOptions then you won't need to do anything since it will default to .all

    What's operation options?

    ⚡️ It's a feature that allows you to have more control over what happens when using Sync, you can then tell sync to only do inserts and updates, or only do inserts and deletes and so on.

    Looks like this:

    dataStack.sync(updated, inEntityNamed: "User", operations: [.insert, .update, .delete, .deleteRelationships], completion: nil)