Skip to content

Make postgrest query builders immutable - #1521

Closed
gourabsingha1 wants to merge 1 commit into
supabase:mainfrom
gourabsingha1:bugfix/immutable-query-builder
Closed

gourabsingha1 wants to merge 1 commit into
supabase:mainfrom
gourabsingha1:bugfix/immutable-query-builder

Conversation

@gourabsingha1

Copy link
Copy Markdown

This PR resolves the issue where query builder objects in postgrest are mutable (Issue #1208). By implementing cloned-builder logic for all public filter methods, each chained method now returns a new independent builder instance. This matches postgrest-js behavior and prevents query parameters from incorrectly appending when sharing query builders or running multiple paginated queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant