How to find document by embedded property.
urosjarc opened this issue · 2 comments
urosjarc commented
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 :(
mervyn-mccreight commented
Is https://litote.org/kmongo/typed-queries/#nested-properties-and-operator what you are searching for?
urosjarc commented
Thank you that solves my issue.