Hi all,
class Friend(val coor: Coordinate?)
class Coordinate(val lat: Int, val lng : Int)
// the generated query is {"coor.lat":{$lt:0}}
col.findOne(Friend::coor / Coordinate::lat lt 0)
Regarding, the "/" operator between "coor" and "Coordinate", what is the import statement that will allow IntelliJ IDE to auto complete this?
I am getting a red squiggly line with an autofix suggestion to create a new extension for 'div' or on my update.
This is what I am trying to do:
fun appendData(person: Person, data: Data) {
collection.updateOne(
Snapshot::person / Person::_id eq targetPerson._id(),
addToSet(Snapshot::data, data)
)
}
TIA