Support nulls=stripped introduced by PostgREST 11.2.0
steve-chavez opened this issue · comments
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
Great addition. Thank you for the continuous improvement and maintenance.
My two cents: I would also like if it could be set as a global option.