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

    Function getAndUpdate

    • Type Parameters

      Parameters

      • collectionId: string

        The ID of the collection to remove the item from.

      • itemId: ItemID

        ItemID to filter the _id field when performing the operation.

      • value: CItem

        Item that contains new data.

      • Optionaloptions: WeivDataOptionsOwner

        An object containing options to use when processing this operation.

      Returns Promise<undefined | CItem>

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

      You can use getAndUpdate to find an item by it's _id and update it's content.