• 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<CItem | undefined>

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

    You can use getAndReplace to find an item by it's _id and replace it with new data.