How to update subdocument in Couchbase using Nodejs


I tried to update sub-document using my node application but actually it is updating document in a loop, so unable to update all fields.
out of 20 fields , it is updating for 17 or sometimes 18 fields.
Do I need to implement locking machanism for this?
But not sure how to lock and unlock document using nodejs?

1 Like

Any news about this problem?!

I also have the same problem!!

Hi @nlalwani22,

Would you mind posting the code you’re using?