I have question about data modeling and the API of Couchbase Lite 2.0.
I am not sure how I can achieve embedding documents as described here (Embedding “1” in “many” side) with the current available API.
I expected some API like this:
let studentDocument = ... let students = classDocument.array(forKey: "students") students.appendDocument(studentDocument)
The only way I could find was referencing documents but not embed them.
Is there a way to embed documents with the current API otherwise it would be nice to have an API method for that?
Client OS: iOS 11.2