<!--
{
  "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/EntityQueryComparatorsBuilder",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents29EntityQueryComparatorsBuilderO"
  },
  "title" : "EntityQueryComparatorsBuilder"
}
-->

# EntityQueryComparatorsBuilder

A result builder that allows you to declaratively describe the comparators for a queryable property.

```
@resultBuilder enum EntityQueryComparatorsBuilder<Entity, Subject, Property, PropertyType, ComparatorMappingType> where Entity : AppEntity, Subject : AppEntity, Property : EntityProperty<PropertyType>, PropertyType : _IntentValue, PropertyType : Sendable
```

## Topics

### Building query comparators

[`static func buildBlock(AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>...) -> [AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>]`](/documentation/AppIntents/EntityQueryComparatorsBuilder/buildBlock(_:))

[`struct AnyEntityQueryComparator`](/documentation/AppIntents/AnyEntityQueryComparator)

A type that erases the type information of the underlying query comparator.

[`static func buildExpression(EntityQueryComparator<Property, PropertyType, PropertyType.UnwrappedType, ComparatorMappingType>) -> AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>`](/documentation/AppIntents/EntityQueryComparatorsBuilder/buildExpression(_:)-4g6f9)

[`static func buildExpression(EntityQueryComparator<Property, PropertyType, PropertyType, ComparatorMappingType>) -> AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>`](/documentation/AppIntents/EntityQueryComparatorsBuilder/buildExpression(_:)-5tlbq)

[`static func buildExpression<InputType>(ContainsComparator<Property, PropertyType, InputType, ComparatorMappingType>) -> AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>`](/documentation/AppIntents/EntityQueryComparatorsBuilder/buildExpression(_:)-6v6cj)

[`static func buildExpression<InputType>(IsBetweenComparator<Property, PropertyType, InputType, ComparatorMappingType>) -> AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType>`](/documentation/AppIntents/EntityQueryComparatorsBuilder/buildExpression(_:)-8jx4k)

[`class EntityQueryComparator`](/documentation/AppIntents/EntityQueryComparator)

The base class for all concrete entity query comparators.



---

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)