pqt
pqt copied to clipboard
Extend find method with recursive join statement.
Right now, with schema like A 1-n B 1-n C
. Joining from C
to A
through B
is not possible. So expression like:
filter := &model.CFindExpr{
Offset: req.Offset,
Limit: req.Limit,
OrderBy: []model.RowOrder{model.RowOrder{Name: "id"}},
JoinB: &model.BJoin{
Fetch: true,
Kind: model.JoinInner,
JoinA: &model.AJoin{
Fetch: true,
Kind: model.JoinInner,
},
},
}
will not fetch object A
.