Hi,
When creating a local document on a device with a known ID that will eventually be created on the CB Server (after some business logic and API results), should the newly created document on the CB server be synced with the local document on the device (providing it has the same CB id)?
Secondly, do all the properties on the doc need to be exactly the same? i.e The locally created document has an a property that is specific to the device such as a locally stored file location.
Example:
Local doc:
val doc = MutableDocument(id123)doc.setString("downloadUrl", "") doc.setString("localUri", localUri) doc.setString("type", attachment) database.save(doc)
returned doc from CB server when ready
{ id: id123 downloadUrl: "https://exampleurl" type: "attachment" }
I was hoping by to have the documents synced and merged?