<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSIncrementalStoreNode/update(withValues:version:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSIncrementalStoreNode(im)updateWithValues:version:"
  },
  "title" : "update(withValues:version:)"
}
-->

# update(withValues:version:)

Update the values and version to reflect new data being saved to or loaded from the external store.

```
func update(withValues values: [String : Any], version: UInt64)
```

## Parameters

`values`

A dictionary containing updated values, in the same format as that described in [`init(objectID:withValues:version:)`](/documentation/CoreData/NSIncrementalStoreNode/init(objectID:withValues:version:)).

`version`

The version number for the transaction.

## Discussion

Update the values and version to reflect new data being saved to or loaded from the external store.  // The values dictionary is in the same format as the initializer

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)