Subscription - Record update
Generic record update
Generic records provide a generic way of publishing updates by the database. All updates have the same super type, GenericRecordUpdate, which is a sealed Kotlin class. This means that all instances are guaranteed to be one of the implementation types:
GenericRecordUpdate.InsertGenericRecordUpdate.DeleteGenericRecordUpdate.Modify
All these types have the following properties:
tableName:StringrecordId:Longtimestamp:Longemitter:String?
Additionally, GenericRecordUpdate.Insert and GenericRecordUpdate.Delete also have a record field. Whereas GenericRecordUpdate.Modify has an oldRecord and a newRecord field.