Skip to content

Multiple find_with_related() #1028

Answered by billy1624
Kijewski asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Kijewski, sorry for the delay. Currently we only support one *_related at a time. So, I'd suggest you to create a custom struct to hold the query result of each row consist of good_child, neutral_child and chaotic_child data. See https://www.sea-ql.org/SeaORM/docs/advanced-query/custom-select/#handling-custom-selects for details.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Kijewski
Comment options

Answer selected by Kijewski
Comment options

You must be logged in to vote
1 reply
@cnwzhu
Comment options

Comment options

You must be logged in to vote
1 reply
@Reinhard-Berger
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants