ExpandTransform

open class ExpandTransform : TransformValue, @unchecked Sendable

Represents the ‘expand’ transformation.

  • Declaration

    Swift

    override open func copyMutable() -> DataValue

    Return Value

    A clone of this value if it (together with all value subcomponents) is possibly mutable, or return self value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

  • Creates an ‘expand’ transformation.

    Declaration

    Swift

    open class func create(_ path: PropertyPath) -> ExpandTransform

    Parameters

    path

    The property path of the navigation property to be expanded in the expand transformation.

    Return Value

    The expand transformation.

  • The child expand item to be applied.

    Declaration

    Swift

    @inline(__always)
    public final var expand: ExpandTransform? { get }
  • The filter transform to be applied for the expand transformation.

    Declaration

    Swift

    @inline(__always)
    public final var filter: FilterTransform? { get }
  • The path of the navigation property to expand.

    Declaration

    Swift

    public final var propertyPath: PropertyPath { get }
  • Creates an ‘expand’ transformation with a child ‘expand’ transformation.

    Declaration

    Swift

    open class func withExpand(_ path: PropertyPath, expand: ExpandTransform) -> ExpandTransform

    Parameters

    path

    The property path of the navigation property to be expanded in the expand transformation.

    expand

    The child expand transformation of the expand transformation to be created.

    Return Value

    The expand transformation.

  • Creates an ‘expand’ transformation with a ‘filter’ transformation.

    Declaration

    Swift

    open class func withFilter(_ path: PropertyPath, filter: FilterTransform) -> ExpandTransform

    Parameters

    path

    The property path of the navigation property to be expanded in the expand transformation.

    filter

    The filter transform of the expand transformation to be created.

    Return Value

    The expand transformation.