pqt icon indicating copy to clipboard operation
pqt copied to clipboard

Extend find method with recursive join statement.

Open piotrkowalczuk opened this issue 5 years ago • 0 comments

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.

piotrkowalczuk avatar Sep 11 '18 09:09 piotrkowalczuk