---
title: shouldFetchRootRecord
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchsharemetadataoperation/shouldfetchrootrecord
---

# shouldFetchRootRecord

A Boolean value that indicates whether to retrieve the root record.

## Declaration

```swift
var shouldFetchRootRecord: Bool { get set }
```

## Discussion

Discussion For a shared record hierarchy, set this property to true to include the root record in the fetched share metadata. CloudKit ignores this property for a shared record zone because, unlike a shared record hierarchy, it doesn’t have a nominated root record. The default value is false.

## See Also

### Configuring the Operation

- [shareURLs](cloudkit/ckfetchsharemetadataoperation/shareurls.md)
