<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSManagedObject/fetchRequest()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Data",
      "CoreData"
    ],
    "preciseIdentifier" : "c:@CM@CoreData@@objc(cs)NSManagedObject(cm)fetchRequest"
  },
  "title" : "fetchRequest()"
}
-->

# fetchRequest()

Returns an initialized fetch request with the entity this subclass represents.

```
@objc dynamic class func fetchRequest() -> NSFetchRequest<any NSFetchRequestResult>
```

## Discussion

This method is only legal to call on subclasses of `NSManagedObject` that represent a single entity in the model.

---

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)