Multiple joins with multiple selects #2733
-
|
Hello everyone, And i want to add Thx |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
You can try nested select as described here https://www.sea-ql.org/SeaORM/docs/next/relation/nested-selects/#nested-models |
Beta Was this translation helpful? Give feedback.
-
|
I've added this in https://github.com/SeaQL/sea-orm/pull/2757/files // join path:
// one -> two -> three -> four -> five
// -> six
let (one, two, three, four, five, six) = one::Entity::find()
.find_also(one::Entity, two::Entity)
.find_also(two::Entity, three::Entity)
.find_also(three::Entity, four::Entity)
.find_also(four::Entity, five::Entity)
.find_also(one::Entity, six::Entity)
.one(db)
.await?
.unwrap(); |
Beta Was this translation helpful? Give feedback.
I've added this in https://github.com/SeaQL/sea-orm/pull/2757/files