---
title: "buildExpression(_:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/entityquerycomparatorsbuilder/buildexpression(_:)-4g6f9"
---

# buildExpression(_:)

## Declaration

```swift
static func buildExpression(_ expression: EntityQueryComparator<Property, PropertyType, PropertyType.UnwrappedType, ComparatorMappingType>) -> AnyEntityQueryComparator<Entity, Subject, Property, PropertyType, ComparatorMappingType> where PropertyType : ExpressibleByNilLiteral
```

## See Also

### Building query comparators

- [buildBlock(_:)](appintents/entityquerycomparatorsbuilder/buildblock(_:).md)
- [AnyEntityQueryComparator](appintents/anyentityquerycomparator.md)
- [buildExpression(_:)](appintents/entityquerycomparatorsbuilder/buildexpression(_:)-5tlbq.md)
- [buildExpression(_:)](appintents/entityquerycomparatorsbuilder/buildexpression(_:)-6v6cj.md)
- [buildExpression(_:)](appintents/entityquerycomparatorsbuilder/buildexpression(_:)-8jx4k.md)
- [EntityQueryComparator](appintents/entityquerycomparator.md)
