init(_:comparators:)
Initializes a EntityQueryProperty that applies to entity property at the provided keyPath.
Declaration
convenience init(_ keyPath: KeyPath<Subject, Property>, @EntityQueryComparatorsBuilder<Entity, Entity, Property, PropertyType, ComparatorMappingType> comparators: () -> EntityQueryProperty<Entity, Subject, Property, PropertyType, ComparatorMappingType>.QueryComparators) where Entity == SubjectParameters
- keyPath:
The keypath to the property that this EntityQueryProperty applies to. The target property type determines which comparator modifiers will be available.
- comparators:
The set of
EntityQueryComparatorsthat this property supports being queried by.