Skip to content

Order parent and children? #229

Discussion options

You must be logged in to vote

Hey @richcorbs.

Can you try doing it as:

supabase
.from("parents")
.select("*, children(*)")
.order('name', { ascending: false})
.order('name', { foreignTable: 'children', ascending: false})

(I'm getting the example from a postgrest-js test)

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by richcorbs
Comment options

You must be logged in to vote
4 replies
@richcorbs
Comment options

@richcorbs
Comment options

@soedirgo
Comment options

@richcorbs
Comment options

Comment options

You must be logged in to vote
1 reply
@kiwicopple
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
Labels
None yet
4 participants