ix(postgrest): filter out undefined values in match method#2169
Merged
mandarini merged 1 commit intosupabase:masterfrom Mar 17, 2026
Merged
ix(postgrest): filter out undefined values in match method#2169mandarini merged 1 commit intosupabase:masterfrom
mandarini merged 1 commit intosupabase:masterfrom
Conversation
undefined values in match methodundefined values in match method
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
undefined values in match method
mandarini
approved these changes
Mar 17, 2026
mandarini
pushed a commit
that referenced
this pull request
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔍 Description
What changed?
Filter out
undefinedvalues from the queryWhy was this change needed?
Closes #2167
🔄 Breaking changes
📋 Checklist
<type>(<scope>): <description>npx nx formatto ensure consistent code formattingEdit from @mandarini:
Note on behavior change
Previously, passing
undefinedvalues in thematch()query object would result in the literal stringeq.undefinedbeing appended as a query parameter (e.g.,?column=eq.undefined). This was never valid PostgREST syntax and would produce errors or unexpected results.With this change,
undefinedvalues are silently filtered out, matching the existing behavior inPostgrestClient.rpc(). While technically a behavior change, the previous behavior was broken and no one should be relying on eq.undefinedbeing sent as a filter. So I am categorizing this as a fix.