Open
Description
PostgREST 11.2.0 introduced stripping of null value properties in JSON results for arrays and single object responses. To support that functionality in postgrest-js a method like stripNulls()
could be introduced. For instance: client.from('table').select().stripNulls()
.
Further information:
https://github.com/PostgREST/postgrest/releases/tag/v11.2.0 (see "Resource Representation")
https://postgrest.org/en/stable/references/api/resource_representation.html#stripped-nulls
https://github.com/PostgREST/postgrest/blob/main/test/spec/Feature/Query/NullsStrip.hs
PostgREST/postgrest#1601
PostgREST/postgrest#2894
PostgREST/postgrest#2899
Originally posted by @vrilcode in supabase/supabase#16479