---
title: fetchDatabaseChangesResultBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchdatabasechangesoperation/fetchdatabasechangesresultblock
---

# fetchDatabaseChangesResultBlock

The closure to execute when the operation finishes.

## Declaration

```swift
var fetchDatabaseChangesResultBlock: ((Result<(serverChangeToken: CKServerChangeToken, moreComing: Bool), any Error>) -> Void)? { get set }
```

## Discussion

Discussion The closure has no return value and takes the following parameter: A Result that contains either: A successful Result of The change token to store and use in subsequent instances of CKFetchDatabaseChangesOperation. A Boolean that indicates whether this is the final database change. If fetchAllChanges is false, it’s the app’s responsibility to create additional instances of CKFetchDatabaseChangesOperation to fetch further changes. An error that contains information about a problem encountered retrieving the database changes. This closure executes only once, and represents your final opportunity to process the results. The closure executes serially with respect to the other closures of the operation. Set this property before you execute the operation or submit it to a queue.
