NSErrorMergePolicy
The default merge policy for all managed object contexts.
Declaration
var NSErrorMergePolicy: AnyObjectDiscussion
If a save fails because of conflicting objects, you can find the IDs of those objects in error’s userInfo dictionary. Use the NSInsertedObjectsKey and NSUpdatedObjectsKey keys to extract the object IDs.