Update

public struct Update: Fn

Updates a resource ref. Updates are partial, and only modify values that are specified. Scalar values and arrays are replaced by newer versions, objects are merged, and null removes a value.

Reference.

  • Declaration

    Swift

    public init(ref: Expr, to params: Expr)

    Parameters

    ref

    Indicates the instance to be updated.

    params

    Data to update the instance.