Contents

EntityQueryProperties

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

Declaration

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 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

Getting the query properties

See Also

Property-matched queries