---
title: includeSample
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkquantityseriessamplequery/includesample
---

# includeSample

A Boolean value that determines whether the query should return the series sample.

## Declaration

```swift
var includeSample: Bool { get set }
```

## Discussion

Discussion By default, a quantity series sample only returns the individual quantity objects that make up the series—not the HKQuantitySample object that represents the entire series. Set this parameter to true to have the query also return the quantity sample object for the series. note: This may introduce a performance cost for the query.

## See Also

### Creating a Series Query

- [init(quantityType:predicate:quantityHandler:)](healthkit/hkquantityseriessamplequery/init(quantitytype:predicate:quantityhandler:).md)
- [orderByQuantitySampleStartDate](healthkit/hkquantityseriessamplequery/orderbyquantitysamplestartdate.md)
