Reputation: 1902
I have many C
s in a B
and many B
s in an A
, and I have backref relationships defined. What I want to do is something like:
a = A.query().options(subqueryload(A.b).subsubqueryload(B.c)
How should this be done?
Upvotes: 8
Views: 4215
Reputation: 76962
Straight from the documentation of subqueryload
:
qry = query(A).options(subqueryload(A.b).subqueryload(B.c))
Upvotes: 7