<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/EntityQueryProperties",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents21EntityQueryPropertiesV"
  },
  "title" : "EntityQueryProperties"
}
-->

# EntityQueryProperties

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

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

## 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`](/documentation/AppIntents/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: () -> [EntityQueryPropertyDeclaration<Entity, ComparatorMappingType>])`](/documentation/AppIntents/EntityQueryProperties/init(properties:))

[`enum EntityQueryPropertiesBuilder`](/documentation/AppIntents/EntityQueryPropertiesBuilder)

A result builder that allows you to declaratively describe the properties to include in a property-matched query.

### Getting the query properties

[`subscript(Int) -> EntityQueryPropertyDeclaration<Entity, ComparatorMappingType>`](/documentation/AppIntents/EntityQueryProperties/subscript(_:))



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)