ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
13 replies
magicseth

realtime updates with complex filter?

I'm trying to subscribe to updates for a (barely) complex filter, but it doesn't seem to work? Are boolean filters allowed?

supabase
    .channel('public:messages')
    .on('postgres_changes', {
        event: 'INSERT',
        schema: 'public',
        table: 'messages',
        filter: "and(from.eq.${from},to.eq.${to})"
    }, gotNewMessage)
    .subscribe(console.log)
supabase
    .channel('public:messages')
    .on('postgres_changes', {
        event: 'INSERT',
        schema: 'public',
        table: 'messages',
        filter: "and(from.eq.${from},to.eq.${to})"
    }, gotNewMessage)
    .subscribe(console.log)
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

Realtime event with complex query
SupabaseSSupabase / help-and-questions
3y ago
Supabase Realtime filter
SupabaseSSupabase / help-and-questions
4y ago
Realtime filter in database
SupabaseSSupabase / help-and-questions
4y ago
Any known issue with realtime database updates?
SupabaseSSupabase / help-and-questions
9mo ago