I want to filter out the courses on the basis of match query to the courseTitle.
So How can I perform this operation via KMONGO at server side ?
This is my Course Data Class
And I have a course document in MongoDB compass.
@Serializable
data class Course(
@BsonId
var id: String = ObjectId().toString(),
val courseTitle: String,
val imageUrl: String,
val description: String,
val noOfStudentEnrolled: Int,
val course_teacher : Teacher,
var noOfLessons: Int,
val noOfStudentRated: Int,
val rating: Double,
val tag: String? = null,
val lessons: List<Lesson>,
val time: String,
)