Skip to content

show all embeded entries when using an embed filter #2736

Answered by gregwebs
gregwebs asked this question in Q&A
Discussion options

You must be logged in to vote

Just needed a minor tweak, thanks!

curl 'http://127.0.0.1:8432/stores?select=name,Phones:phones(id,store_id,phone_number),filtered_phones:phones!inner(phone_number)&filtered_phones.phone_number=eq.111-111-1111'
[{"name":"Store 1","filtered_phones":[{"phone_number":"111-111-1111"}],"Phones":[{"id":1,"store_id":1,"phone_number":"111-111-1111"},
 {"id":2,"store_id":1,"phone_number":"111-111-1112"},
 {"id":3,"store_id":1,"phone_number":"111-111-1113"}]}]

Replies: 2 comments 3 replies

Comment options

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

Comment options

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

@gregwebs
Comment options

Answer selected by gregwebs
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