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)
Was this page helpful?