---
title: execute()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nsfetchrequest/execute()
---

# execute()

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

## Declaration

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

## Discussion

Discussion Calling execute on an NSFetchRequest will cause the NSFetchRequest to run against the managed object context (NSManagedObjectContext) that is associated with the queue on which the execute is called.
