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: Long = Random.nextLong() val items: List<String> = listOf() }