I have following entity:
class Linf {
@Id
ObjectId id;
@Reference
Denied denied;
}
I want to find all Linfs that have Denied object with certain id. How can I do this? Will this query employ indexes? I want to avoid full scan if possible.
Thanx.
This works for me: