ModelPath
open class ModelPath<ModelType> : PropertyContainerPath where ModelType : Model
Represents the Model
structure itself, a container of property references.
- Example:
“`swift
class PostModelPath : ModelPath
{}
extension ModelPath where ModelType == Post {
var id: FieldPath
-
Declaration
Swift
public init(name: String = "root", isCollection: Bool = false, parent: PropertyPath? = nil)
-
Declaration
Swift
public func getMetadata() -> PropertyPathMetadata
-
Declaration
Swift
public func getModelType() -> Model.Type
-
Declaration
Swift
public func isRoot() -> Bool
-
Declaration
Swift
public func id(_ name: String = "id") -> FieldPath<String>
-
Declaration
Swift
public func string(_ name: String) -> FieldPath<String>
-
Declaration
Swift
public func bool(_ name: String) -> FieldPath<Bool>
-
Declaration
Swift
public func int(_ name: String) -> FieldPath<Int>
-
Declaration
Swift
public func double(_ name: String) -> FieldPath<Double>