ExpandablePath

open class ExpandablePath : PropertyPath, @unchecked Sendable

Convenience class for the abbreviated creation of expand queries with nested select/expand/filter.

  • Add nested expand items to this expandable path.

    Declaration

    Swift

    override open func expand(_ items: PropertyPath...) -> ExpandablePath

    Parameters

    rest_items

    Expand items to be added.

    Return Value

    This expandable path.

  • Add a nested query filter to this expandable path.

    Declaration

    Swift

    override open func filter(test: QueryFilter) -> ExpandablePath

    Parameters

    test

    Query filter to be added.

    Return Value

    This expandable path.

  • Declaration

    Swift

    open class func from(_ resource: EntitySet) -> ExpandablePath

    Parameters

    resource

    Resource path.

    Return Value

    An expandable path that starts from the provided resource.

  • Declaration

    Swift

    open class func of(_ path: PropertyPath) -> ExpandablePath

    Parameters

    path

    Property path.

    Return Value

    An expandable path that starts from the provided path.

  • Path for the expand item that has nested select/expand/filter items.

    Declaration

    Swift

    public final var path: PropertyPath { get }
  • Query containing the nested select/expand/filter items.

    Declaration

    Swift

    @inline(__always)
    public final var query: DataQuery { get }
  • Add nested select items to this expandable path.

    Declaration

    Swift

    override open func select(_ items: PropertyPath...) -> ExpandablePath

    Parameters

    rest_items

    Select items to be added.

    Return Value

    This expandable path.

  • Declaration

    Swift

    override open func toPath() -> DataPath

    Return Value

    this property or path, expressed as a DataPath.