We faced a situation were we have to firstly see the data and then change it accordingly in couchbase, but the GUI of couchbase doesn’t allows us to see the data of size more than 2.5kb and forget about changing,
So there is a quick hack of how you can actually change the data without using the GUI and just by making a curl request:
If you want to see the data :
Just make this CURL request
Example:
And you’ll get a response like this :
And inside the field json you’ get your required Json,
You can easily do this just by seeing developer console.. 😉
Now the big task i.e. If you want to change the data
So for that firstly retrieve the data from above request make changes, and then make a POST request to the same url with the new Json. It will get updated.
Example:
And it will automatically update the required document.