Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’3y agoβ€’
8 replies
π˜™π˜’π˜Ί

How to Get only those rows whose jsonb[] column contains an object with specific key-value

i have a table and it has a column of "members" , it is of type jsonb defined as array , for example
[{id: 2, role: "member"}, {id: 4, role: "admin"}]
how can i get only those rows whose "members" column contains an object with "id": 3 etc
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to get data that contains a specific dynamic value?
SupabaseSSupabase / help-and-questions
3y ago
Using contains query for a nested jsonb column
SupabaseSSupabase / help-and-questions
4y ago
REST URL Filter: Column contains value
SupabaseSSupabase / help-and-questions
3y ago
Querying a specific key and value in an array
SupabaseSSupabase / help-and-questions
13mo ago