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().
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
https://github.com/PostgREST/postgrest/issues/1601 https://github.com/PostgREST/postgrest/pull/2894 https://github.com/PostgREST/postgrest/pull/2899
Originally posted by @vrilcode in https://github.com/supabase/supabase/discussions/16479