David Rogers
04/04/2022, 3:57 PMfunction relation(required guid key) {
return hasMany(...).whereSomeKey(key);
}
i'm trying to eager load it, but wondering if I can pass the key argument?
like
instance.with("relation") // can't pass key here
instance.with({relation: (q) => q.whereSomeKeyAlreadyRanHere_Ithink()}) // ?
sknowlton
04/05/2022, 1:59 PM.whereSomeKey( key )
in the eager load constraint call