Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for range filters #302

Open
rlee1990 opened this issue Oct 7, 2022 · 4 comments
Open

Add support for range filters #302

rlee1990 opened this issue Oct 7, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@rlee1990
Copy link

rlee1990 commented Oct 7, 2022

It would be good to be able to support pagination in realtime with things like range.

@rlee1990 rlee1990 added the enhancement New feature or request label Oct 7, 2022
@w3b6x9
Copy link
Member

w3b6x9 commented Oct 7, 2022

@rlee1990 thanks for the feature request!

Just to clarify, do you mean a range filter? for example, a client wants to only receive changes when id is between 1 and 100, inclusive?

@rlee1990
Copy link
Author

rlee1990 commented Oct 7, 2022

@rlee1990 thanks for the feature request!

Just to clarify, do you mean a range filter? for example, a client wants to only receive changes when id is between 1 and 100, inclusive?

Something like this:

final data = await supabase
  .from('cities')
  .select('name, country_id')
  .range(0,3);

w3b6x9 pushed a commit that referenced this issue Nov 4, 2022
Better `Extensions.Postgres.DynamicSupervisor` opts
@chasers
Copy link
Contributor

chasers commented Dec 14, 2022

@rlee1990 for your specific example here, this belongs on the PostgREST repo. Can you create this there please?

Complimentary, I think it makes sense for Realtime to support a range filter so that one subscription could update a list of things returned from a query like that.

I'm going to change the subject to better reflect that.

@chasers chasers changed the title Support For Pagination Add support for range filters Dec 14, 2022
@rlee1990
Copy link
Author

Will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants