KeyPath

class KeyPath<Root, Value> : PartialKeyPath<Root>
  • Declaration

    Swift

    public typealias ObjectType = Root
  • Declaration

    Swift

    public typealias ValueType = Value
  • Declaration

    Swift

    public var cs_keyPathString: String { get }
  • Creates a Where.Expression clause for COUNT

    let dogsWithPlaymates = CoreStore.fetchAll(From<Dog>().where((\.master ~ \.pets).count() > 1))
    

    Declaration

    Swift

    public func count() -> Where<Root>.Expression<Where<Root>.CollectionTarget, Int>
  • Creates a Where.Expression clause for COUNT

    let dogsWithPlaymates = CoreStore.fetchAll(From<Dog>().where((\.master ~ \.pets).count() > 1))
    

    Declaration

    Swift

    public func count() -> Where<Root>.Expression<Where<Root>.CollectionTarget, Int>