Following is the code for updating an item:
upadateProduct(id, revId, product): Observable { product = { ...product, _id: id, _rev: revId };