I'm using Kotlin with Spring to manage a MongoDB collection. I've noticed that every new document comes with _class field built in.
Is there an elegant way to get rid of it? I don't wanna store any bit of data that's not completely necessary.
I saw some Java solutions for that but wanted to ask if you guys know about any elegant solution in Kotlin.
Thanks