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

# execute()

Executes the fetch request against the managed object context that is associated with the current queue.

```
func execute() throws -> [ResultType]
```

## Discussion

Calling `execute` on an [`NSFetchRequest`](/documentation/CoreData/NSFetchRequest) will cause the [`NSFetchRequest`](/documentation/CoreData/NSFetchRequest) to run against the managed object context ([`NSManagedObjectContext`](/documentation/CoreData/NSManagedObjectContext)) that is associated with the queue on which the `execute` is called.

---

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)