Ignore a Field - Kotlin SDK
To prevent a field from persisting in Realm Database or showing up in your Realm Schema, use the @Ignore annotation:
class ShoppingCart : RealmObject { val _id: ObjectId = ObjectId() val items: List<String> = listOf() }