Hi - Is it possible to specify multiple filters wh...
# help
h
Hi - Is it possible to specify multiple filters while creating a realtime subscription? Example - const mySubscription = supabase .from('countries:id=eq.200, countries:id=eq.100') .on('UPDATE', handleRecordUpdated) .subscribe()
n
Hello @hemantgangolia! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
You can use .or for this
h
What if I have multiple rows to listen to? How would the query change?
g
@hemantgangolia @jaitaiwan No to all 3 statements/questions. Realtime only takes a single .eq filter right now.
h
Thanks @garyaustin. Would you know if Supabase plans to support this feature (Listening to multiple row changes) in the next release? Link me to the Github issue if it's already open?
g
https://github.com/supabase/realtime/issues/222 Towards end of this is last I've seen. Also mentions the various requests for filters. To me .in would be the biggest help then you can at least watch multiple values in a column (like your original question)