---
title: UniqueAppEntityQuery
framework: appintents
role: symbol
role_heading: Protocol
path: appintents/uniqueappentityquery
---

# UniqueAppEntityQuery

A query designed for only returning a single possible value, provided by uniqueEntity. Protocol extensions will provide the other required query methods based on that.

## Declaration

```swift
protocol UniqueAppEntityQuery : EnumerableEntityQuery where Self.Entity : UniqueAppEntity
```

## Topics

### Associated Types

- [Unique](appintents/uniqueappentityquery/unique.md)

### Instance Methods

- [uniqueEntity()](appintents/uniqueappentityquery/uniqueentity().md)

## Relationships

### Inherits From

- [DynamicOptionsProvider](appintents/dynamicoptionsprovider.md)
- [EntityQuery](appintents/entityquery.md)
- [EnumerableEntityQuery](appintents/enumerableentityquery.md)
- [PersistentlyIdentifiable](appintents/persistentlyidentifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Conforming Types

- [UniqueAppEntityProvider](appintents/uniqueappentityprovider.md)

## See Also

### Unique entity queries

- [UniqueAppEntityProvider](appintents/uniqueappentityprovider.md)
