---
title: "update(withValues:version:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsincrementalstorenode/update(withvalues:version:)"
---

# update(withValues:version:)

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

## Declaration

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

## Parameters

- `values`: A dictionary containing updated values, in the same format as that described in doc://com.apple.coredata/documentation/CoreData/NSIncrementalStoreNode/init(objectID:withValues:version:).
- `version`: The version number for the transaction.

## Discussion

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

## See Also

### Managing Node Data

- [objectID](coredata/nsincrementalstorenode/objectid.md)
- [value(for:)](coredata/nsincrementalstorenode/value(for:).md)
- [version](coredata/nsincrementalstorenode/version.md)
