Skip to content

RFC: Allow filter chaining #486

Open

Description

@selbyk

Summary

Allow filter chaining

Rationale

Subscriptions to compound keys or multiple criteria would be useful in some scenarios

Design

An dense explanation in sufficient detail that someone familiar with the
project could implement the feature. Specifics and corner cases should be covered.

Examples

filters: [`store_id=eq.${store.id}`,`product_id=eq.${product.id}`]
filter: `store_id=eq.${store.id},product_id=eq.${product.id}`
filter: `store_id=eq.${store.id},.or(product_id=eq.${product.id},product_id=eq.${productTwo.id})`

Drawbacks

What are the negative trade-offs?

Alternatives

What other solutions have been considered?

Unresolved Questions

Not sure what work would be involved
Filter syntax probably needs work

Activity

  1. changed the title [-]Allow filter chaining[/-] [+]RFC: Allow filter chaining[/+] on Feb 16, 2023
  2. transferred this issue fromsupabase/walruson Feb 16, 2023
  3. sathishkannan162 commented on Sep 13, 2023

    @sathishkannan162

    This feature would prove to be very useful. Looking forward to see this feature implemented.

  4. amerryma commented on Sep 24, 2024

    @amerryma

    @olirice any plans for this or is supabase looking for community contributions for this one?

  5. olirice commented on Sep 24, 2024

    @olirice

    any plans for this or is supabase looking for community contributions for this one?

    @filipecabaco could you please weigh in on this one ^

    fwiw, walrus does support arrays of filters but I understand that isn't he only consideration

  6. amerryma commented on Oct 10, 2024

    @amerryma

    Hi there, just keeping this thread fresh. I'm curious though, does supabase/realtime use walrus under the hood and it's just a matter of hook-up?

  7. amerryma commented on Feb 17, 2025

    @amerryma

    Some projects using Refine.dev with Supabase are being affected by this bug, and they're needing to add special one-off logic for Supabase to warn users if they attempt to do something like this using their generic wrapper over realtime logic. I'd love it if they didn't have to build this in at all. Does anyone have any updates on this?

    cc: @olirice @filipecabaco

  8. amerryma commented on Jan 13, 2026

    @amerryma

    Any additional thoughts on this or direction for how to work through this?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions