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 { id() } var title: FieldPath { string("title”) } var blog: ModelPath { BlogModelPath(name: “blog”, parent: self) } }