You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parity(postgrest): add StripNulls method for null value stripping [from supabase-js] #245
Added a .stripNulls() method to the PostgREST query builder that sets Prefer: return=stripped-nulls header. PostgREST omits null-valued properties from response JSON. Requires PostgREST 11.2.0+.
Add a .StripNulls() method to the query builder chain. It should append return=stripped-nulls to the Prefer header.
Note: With C# System.Text.Json, stripped null values work well with nullable properties (string?). Missing JSON properties will deserialize to null/default for nullable types.
Key Behaviors to Match
Sets Prefer: return=stripped-nulls header
Cannot be combined with .Csv() (throw InvalidOperationException)
Works with .Select(), .Single(), .MaybeSingle()
Acceptance Criteria
.StripNulls() method added
Prefer: return=stripped-nulls header set
Exception thrown when combined with .Csv()
Unit tests
No breaking changes
Context
supabase-js version: v2.103.0+
PostgREST requirement: 11.2.0+
Parity tracking: This issue was auto-generated by SDK parity analysis
Activity