Unable to invoke primary constructor of data class – MongoDB Kotlin Driver
I'm not sure why exactly I'm getting this error. Everything seems fine, check the code below. This is my model class: @Serializable actual data class User( @SerialName(value = "_id") actual val id: String = "", actual val username: String =…