<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSFetchRequest/resultType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFetchRequest(py)resultType"
  },
  "title" : "resultType"
}
-->

# resultType

The result type of the fetch request.

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

## Discussion

The default value is [`managedObjectResultType`](/documentation/CoreData/NSFetchRequestResultType/managedObjectResultType).

If you set the value to [`managedObjectIDResultType`](/documentation/CoreData/NSFetchRequestResultType/managedObjectIDResultType), and do not include property values in the request, sort orderings are demoted  to “best efforts” hints.

[`includesPendingChanges`](/documentation/CoreData/NSFetchRequest/includesPendingChanges) discusses with whether pending changes are taken into account when the `resultType` is set to `managedObjectResultType`.

[`includesPropertyValues`](/documentation/CoreData/NSFetchRequest/includesPropertyValues) discusses whether property values are included or not by default when the `resultType` is set to `managedObjectResultType`.

---

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)