MutableDocument Models (iOs Only)


#1

Hi,

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


#2

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.


#3

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


#4

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.


#5

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


#6

You could look at the Mobile TravelSample app.