---
title: Entity queries
framework: appintents
role: collectionGroup
role_heading: API Collection
path: appintents/entity-queries
---

# Entity queries

Implement one or more query types to help the system find your app’s entities.

## Overview

Overview When the system needs to retrieve one or more specific instances of an app entity, it asks you to provide a relevant query type. The system uses queries during parameter resolution when the parameter of an intent contains an entity. The system also uses them to resolve information in a different format into one of your app’s entities. For example, it uses them to resolve natural spoken language into one of your app’s entities. The system can sometimes determine which entities it needs and provide you with a list of corresponding identifiers. Provide an EntityQuery type to supply the entities for those identifiers. Provide additional query types to perform more advanced searches, such as a search that matches specific properties of the entity.

## Topics

### Identifier-based queries

- [EntityQuery](appintents/entityquery.md)
- [IndexedEntityQuery](appintents/indexedentityquery.md)
- [EnumerableEntityQuery](appintents/enumerableentityquery.md)

### String-based queries

- [EntityStringQuery](appintents/entitystringquery.md)

### Property-matched queries

- [EntityPropertyQuery](appintents/entitypropertyquery.md)
- [EntityQueryProperties](appintents/entityqueryproperties.md)
- [EntityQueryProperty](appintents/entityqueryproperty.md)
- [Property comparators](appintents/property-comparators.md)

### Sort options

- [EntityQuerySortingOptions](appintents/entityquerysortingoptions.md)
- [EntityQuerySortableByProperty](appintents/entityquerysortablebyproperty.md)
- [EntityQuerySort](appintents/entityquerysort.md)

### Unique entity queries

- [UniqueAppEntityQuery](appintents/uniqueappentityquery.md)
- [UniqueAppEntityProvider](appintents/uniqueappentityprovider.md)
