---
title: EntityQueryProperties
framework: appintents
role: symbol
role_heading: Structure
path: appintents/entityqueryproperties
---

# EntityQueryProperties

A type that provides the properties to include in a property-matched query.

## Declaration

```swift
struct EntityQueryProperties<Entity, ComparatorMappingType> where Entity : AppEntity
```

## Overview

Overview Contains all the supported properties a user can query against an entity for a given query. Declare query properties with a block containing all applicable EntityQueryProperty objects. Example var properties = QueryProperties {     Property(\.$myDate) {         LessThanComparator { /* ... body of mapping transform ... */ }         GreaterThanComparator { /* ... body of mapping transform ... */ }     }     Property(\.$myArray) {         ContainsComparator { /* ... body of mapping transform ... */ }     } }

## Topics

### Creating the query properties

- [init(properties:)](appintents/entityqueryproperties/init(properties:).md)
- [EntityQueryPropertiesBuilder](appintents/entityquerypropertiesbuilder.md)

### Getting the query properties

- [subscript(_:)](appintents/entityqueryproperties/subscript(_:).md)

## See Also

### Property-matched queries

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