supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Realtime channel subscription with more than one filter

Open onurbamaro opened this issue 2 years ago • 3 comments

Bug report

Describe the bug

Hello!

I am able to subscribe to a channel with one filter like isOpen=eq.true, but can't with more than one filter like isOpen=eq.true&status=eq.preparing

I would like to know if it's possible to achieve that.

PS: I am using the template schema:table:filter for the channel name.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: 2.2.1
  • Version of Node.js: 16.17.0

onurbamaro avatar Dec 22 '22 07:12 onurbamaro

That is not supported currently. Only a single eq,gt,lt,gte,lte,neq filter can be done.

GaryAustin1 avatar Dec 22 '22 14:12 GaryAustin1

@GaryAustin1 Thank you for replying so fast!

I am looking forward for this update.

In the meantime would be nice a heads-up in the docs about this restriction

onurbamaro avatar Dec 22 '22 15:12 onurbamaro

I believe the documentation is clear on that.

sunilguptasg avatar Dec 26 '22 17:12 sunilguptasg