---
title: "result(for:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkanchoredobjectquerydescriptor/result(for:)"
---

# result(for:)

Runs a one-shot query and asynchronously returns a snapshot of the current matching results.

## Declaration

```swift
func result(for healthStore: HKHealthStore) async throws -> HKAnchoredObjectQueryDescriptor<Sample>.Result
```

## Parameters

- `healthStore`: The access point for HealthKit data.

## See Also

### Running Queries

- [results(for:)](healthkit/hkanchoredobjectquerydescriptor/results(for:).md)
- [HKAnchoredObjectQueryDescriptor.Result](healthkit/hkanchoredobjectquerydescriptor/result.md)
- [HKAnchoredObjectQueryDescriptor.Results](healthkit/hkanchoredobjectquerydescriptor/results.md)
