© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
highonhopium

Filter for 'contains any' for an array column, searching by an array

I have a text[] column that contains tags, and i want to return all rows in my table that have ANY of the user's selected tags. at the moment i'm using contains(), but that only returns rows that have ALL the tags. how can i make this work? thanks!
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

REST URL Filter: Column contains value
SupabaseSSupabase / help-and-questions
3y ago
Unable to filter on jsonb array column
SupabaseSSupabase / help-and-questions
4y ago
I can't filter posts by json column
SupabaseSSupabase / help-and-questions
4y ago
checking if value in column (defined as array) contains given substring
SupabaseSSupabase / help-and-questions
4y ago