MutableDocument Models (iOs Only)


I was worked on Couchbase lite 1.x there was Models (iOS Only)

Here i used CBLModel as a super class for all my documents. What is sample class for MutableDocument in Couchbase Lite 2.x

That class does not exist in 2.0+. It is on the potential feature list for redevelopment, but prioritization is driven by (among other things) demand.

Thank you @borrrden So do we have any best pattern how to use couchbase lite in Swift iOS.

Define your own classes and add methods to initialize an instance from a Document, and to save an instance’s state back to the Document.

Thank you Jens, Do you have any sample or links to understand our own?

You could look at the Mobile TravelSample app.