I need to store and retrieve a JSON in ReamDB in runtime without creating a RealmObject for that. Also want to check whether the particular JSON object is present in the DB already using a giving field (like “id”). If it exists, then update the object,If not, then save it as new object.
How to do this in latest version of RealmDB 1.16+ Kotlin SDK in Android.
I searched internet but all examples throw “unresolved references” for classes. It seems they are deprecated and removed.
In the past the best way to do this was to store a single field of JSON in the model. We have recently allowed Mixed fields in new applications to store free-form JSON.