Skip to content

Add support for multiple filters / complex queries for Realtime and stream methods #338

Closed

Description

@davoutuk

For my Flutter app I was trying to build a dynamic filtering facility for a Supabase stream, and have discovered that an exception is thrown whenever more than one filter is applied.

Why this limit?

Is there any way around this? In my case I have want to apply two field filters and the exact two fields can vary according to user interactions

Activity

  1. added
    bug
    on Jan 23, 2023
  2. added
    enhancement
    realtime
    and removed
    bug
    on Jan 23, 2023
  3. dshukertjr commented on Jan 24, 2023

    @dshukertjr
    Member

    @davoutuk
    You can only have one filter on stream() due to the limitation on Supabase's realtime server currently. There is a issue on realtime repo discussing supporting more flexible queries supabase/realtime#303.

  4. added
    blocked
    on Aug 23, 2023
  5. getkey commented on Nov 24, 2023

    @getkey

    Also related: supabase/realtime#486

  6. galacticgibbon commented on Dec 6, 2023

    @galacticgibbon

    I have a workaround, by having a separate column, with the concatenated values, updated by a trigger. Easy if you just want 'eq' but you'll have to get creative if you want gt, lt etc.

  7. getkey commented on Dec 6, 2023

    @getkey

    Even better, as far as dirty hacks go 😅, is to use a generated column.

  8. changed the title [-]Why only filter allowed on a Flutter/Supabase stream??[/-] [+]Add support for multiple filters / complex queries for Realtime and stream methods[/+] on Mar 12, 2024
  9. leighajarett commented on Nov 21, 2024

    @leighajarett

    +1 this is something that FlutterFlow users have asked for :)

  10. github-actions commented on Mar 22, 2026

    @github-actions
    Contributor

    This issue has been inactive for 180 days.
    It will be automatically closed in 30 days if there is no further activity.

    If you believe this issue is still relevant, please leave a comment to keep it open.
    Thank you for your contributions!

  11. KiddoV commented on Mar 27, 2026

    @KiddoV

    Any update on this?

  12. added
    planned
    on Jun 9, 2026
  13. spydon commented on Jun 9, 2026

    @spydon
    Contributor

    Any update on this?

    I think once this PR is merged we can continue to implement this in the SDKs, at least for adding filters with and.

  14. added a commit that references this issue on Oct 6, 2026
    4411c7f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedenhancementplannedrealtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions