---
title: isCountOnlyRequest
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchrequestexpression/iscountonlyrequest
---

# isCountOnlyRequest

Returns a Boolean value that indicates whether the receiver represents a count-only fetch request.

## Declaration

```swift
var isCountOnlyRequest: Bool { get }
```

## Discussion

Discussion true if the receiver represents a count-only fetch request, otherwise false. If this method returns false, the managed object context (from the contextExpression) will perform fetch(_:): with the requestExpression; if this method returns true, the managed object context will perform count(for:) with the requestExpression.

## See Also

### Examining a Fetch Request Expression

- [requestExpression](coredata/nsfetchrequestexpression/requestexpression.md)
- [contextExpression](coredata/nsfetchrequestexpression/contextexpression.md)
