---
title: resultType
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchrequest/resulttype
---

# resultType

The result type of the fetch request.

## Declaration

```swift
var resultType: NSFetchRequestResultType { get set }
```

## Discussion

Discussion The default value is managedObjectResultType. If you set the value to managedObjectIDResultType, and do not include property values in the request, sort orderings are demoted  to “best efforts” hints. includesPendingChanges discusses with whether pending changes are taken into account when the resultType is set to managedObjectResultType. includesPropertyValues discusses whether property values are included or not by default when the resultType is set to managedObjectResultType.

## See Also

### Managing How Results Are Returned

- [includesPendingChanges](coredata/nsfetchrequest/includespendingchanges.md)
- [propertiesToFetch](coredata/nsfetchrequest/propertiestofetch.md)
- [returnsDistinctResults](coredata/nsfetchrequest/returnsdistinctresults.md)
- [includesPropertyValues](coredata/nsfetchrequest/includespropertyvalues.md)
- [shouldRefreshRefetchedObjects](coredata/nsfetchrequest/shouldrefreshrefetchedobjects.md)
- [returnsObjectsAsFaults](coredata/nsfetchrequest/returnsobjectsasfaults.md)
- [NSFetchRequestResultType](coredata/nsfetchrequestresulttype.md)
- [NSFetchRequestResult](coredata/nsfetchrequestresult.md)
