Skip to content

Is a 3-level join possible? #13033

Closed Answered by 99power
99power asked this question in Questions
Mar 15, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Solved. Going to leave this here in case someone else faces the same issue.
The "trick" is to embrace the deeper level dependency in brackets of its parent, like so:

.from('category').select('name, posts(title, playlistitems(id)) postmeta('id)

Thanks to Copilot for this one, couldn't answer it even after questioning it a hundred times, but suggested it on another query.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moeelbadri
Comment options

@aybeedee
Comment options

Answer selected by 99power
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants