See this link
Insert and update/replace operations have the same 2300 code.
I need to differentiate these two operations. Can someone help me understand this?
Asked
Active
Viewed 29 times
0

Tigran Sahakyan
- 363
- 1
- 5
- 10
-
Wouldn't the absence of `data['_rev']` suggest an insert, the presence an update? – Tom Regner Mar 03 '20 at 14:00
-
No, '_rev' exists from very beginning. – Tigran Sahakyan Mar 04 '20 at 14:12
-
Of course; silly me -- wishful thinking... – Tom Regner Mar 04 '20 at 15:39