Skip to content

Many to Many Relationship Query (QUESTION - NOT A BUG) #1983

Answered by steve-chavez
Manuelbaun asked this question in Q&A
Discussion options

You must be logged in to vote

/rest/v1/song?select=*,author(id)&author.id=eq.authorid1

You want to filter the top level resource(songs) based on the embedded resource(author) right? I think you might be in need of this new feature: https://postgrest--442.org.readthedocs.build/en/442/api.html#top-level-filtering

This feature is not yet released, check this comment #1075 (comment).

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Manuelbaun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1982 on October 18, 2021 19:11.