© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
Barba

How do I filter by multiple options?

Would be possible to filter by multiple options like:
const players$ = supabase
            .channel(`public:user:game_id=eq.${gameId}`)
            .on(
                "postgres_changes",
                {
                    event: "*",
                    schema: "public",
                    table: "user",
                    filter: `game_id=eq.${gameId} OR prev_game_id=eq.${gameId}`,
                },
                (payload) => { ... }
const players$ = supabase
            .channel(`public:user:game_id=eq.${gameId}`)
            .on(
                "postgres_changes",
                {
                    event: "*",
                    schema: "public",
                    table: "user",
                    filter: `game_id=eq.${gameId} OR prev_game_id=eq.${gameId}`,
                },
                (payload) => { ... }

basically the option im looking for is
game_id=eq.${gameId} OR prev_game_id=eq.${gameId}
game_id=eq.${gameId} OR prev_game_id=eq.${gameId}
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 do I 'Group by' in Javascript?
SupabaseSSupabase / help-and-questions
4y ago
Multiple Filter on a stream
SupabaseSSupabase / help-and-questions
6mo ago
Filter functions by user created
SupabaseSSupabase / help-and-questions
13mo ago
Can't filter by uuid...
SupabaseSSupabase / help-and-questions
4y ago