The ID of the collection that contains the item to replace.
The item to replace.
Optional
An object containing options to use when processing this operation.
Fulfilled - The item that was replaced. Rejected - The error that caused the rejection.
Replaces and item in a collection. The item you passed with item param will take the place of existing data/document in your collection.
item
This function has it's own hooks beforeUpdate and afterUpdate is not used here instead beforeReplace and afterReplace is used.
The ID of the collection that contains the item to replace.