Litote/kmongo

How to find document by embedded property.

urosjarc opened this issue · 2 comments

How to make typed query if you want to search by inner property of embbeded type?

db.getCollection<Narocnina>().find(Narocnina::uporabnik eq id_uporabnik, Narocnina::produkt::tip eq tip_produkta)
                                                                         ---------------------------------------
                                                                         This stuff fails :(

Thank you that solves my issue.