I'm following IBM's tutorial on CouchDB and ran into a problem saving edited documents. Saving a new doc works fine, and it looks like all my existing doc's values (retrieved via the openDoc
function) are valid, but the new values are simply not taking.
As I trace through the executing code, it looks like the new values are there:
However, after saveDoc
returns successfully (strange!), the doc is not updated. If I log the updated doc, the logged object has no _id
or _rev
values, though you can clearly see they were present while saving (see first screenshot).
Is there some nuance of saveDoc
, or perhaps Evently, that I'm not understanding?