Using mutableDocument and trying to save a complete Class Object . How to achieve the same. TIA.
How to save the whole object to couchbase document such as converting it to JSON or reading it back. I am using couchbase.lite(2.5.0)
I am creating the DB from couchbase session as mentioned in Travel Sample and I can not see the PutProperties method for document.
You can create a MutableDocument with JSON data and calling database.save() to save the document. Basically something like this:
MutableDocument doc = new MutableDocument(json);
MutableDocument doc = new MutableDocument(“CUSTOM_DOCUMENT_ID”, json);