@ptkl/sdk - v1.7.1
    Preparing search index...

    Type Alias ModelUpdateData

    ModelUpdateData: Record<string, any> & UpdateOperators & {
        $aggregate?: UpdateAggregate;
    }

    Model data payload that supports inline update operators. Regular fields are applied via $set, operator keys are applied with their respective MongoDB semantics.

    Pass $aggregate (v4 only) to use an aggregation-expression update instead of plain operators. $aggregate and regular operators are mutually exclusive.

    Type Declaration

    • Optional$aggregate?: UpdateAggregate

      Aggregation-expression update (v4 only). Mutually exclusive with operator keys.