Skip to content

feat: add method find_both_related()#2997

Merged
Huliiiiii merged 11 commits intoSeaQL:masterfrom
rakshith-ravi:find_also_related
Mar 11, 2026
Merged

feat: add method find_both_related()#2997
Huliiiiii merged 11 commits intoSeaQL:masterfrom
rakshith-ravi:find_also_related

Conversation

@rakshith-ravi
Copy link
Copy Markdown
Contributor

@rakshith-ravi rakshith-ravi commented Mar 11, 2026

PR Info

Closes #1203

New Features

  • new selector SelectTwoRequired in which the return type is Vec<(E::Model, F::Model)>
  • a new method fn select_both(mut self, _: F) -> SelectTwoRequired<E, F> on Select
  • new method fn find_both_related()(self, r: R) -> SelectTwoRequired<E, R>

Supersedes #1633

@rakshith-ravi rakshith-ravi changed the title Find also related feat: add method find_both_related() Mar 11, 2026
@Huliiiiii Huliiiiii merged commit b11cc5e into SeaQL:master Mar 11, 2026
39 checks passed
@Huliiiiii
Copy link
Copy Markdown
Member

Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🎉 Released In 2.0.0-rc.38 🎉

Huge thanks for the contribution!
This feature has now been released, so it's a great time to upgrade.
Show some love with a ⭐ on our repo, every star counts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

find_also_related() with non null relation, or using inner join, should not return Option

3 participants