1
Ability to clone query/filter builders
Source: supabase/supabase#37429 · opened by @EskiMojo14
I'd like to do something like the below (I'm actually using RTKQ, but this example will use Tanstack Query for brevity):
But from what I can tell, this would be unsafe as the filter methods mutate the original instance.
If builders had a clone method, it would be possible to explicitly avoid mutating the original:
Open to other suggestions :)
But from what I can tell, this would be unsafe as the filter methods mutate the original instance.
If builders had a clone method, it would be possible to explicitly avoid mutating the original:
Open to other suggestions :)
No pledges yet. Be the first to back this.
Comments
Similar requests
[RFC] Query builder immutability and safe branching semantics across Supabase SDKs
1 vote · 0 comments
[Feature Request] Call other saved SQL queries from Dashboard query
1 vote · 0 comments
Feature Request(postgrest-js): Programmatic .or() Query Building
1 vote · 0 comments
Self-hosted Supabase doesn't support saving analytics queries
1 vote · 0 comments
Custom query parameter on postgrest-js
4 votes · 0 comments
No comments yet.