WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Function multiply

    • Type Parameters

      Parameters

      • collectionId: string

        The ID of the collection to multiply value.

      • itemId: ItemID

        ItemID to filter the _id field when performing the operation.

      • propertyName: Extract<keyof CItem>

        Property name for the multiply field.

      • value: number

        Multiply current value by that much. (If you set it to 10 it will multiply it by 10 x*10)

      • Optionaloptions: WeivDataOptions

        An object containing options to use when processing this operation.

      Returns Promise<null | CItem>

      Fulfilled - Updated item. Rejected - The error caused the rejection.

      You can use multiply function to multiply the value of a filed in an item.