geojson method

ResponsePostgrestBuilder<Map<String, dynamic>, Map<String, dynamic>, Map<String, dynamic>> geojson()

Enables support for GeoJSON for use with PostGIS data types Used when you need the complete response to be in GeoJSON format. You will need to enable the PostGIS extension for this to work.

https://supabase.com/docs/guides/database/extensions/postgis

Implementation

ResponsePostgrestBuilder<Map<String, dynamic>, Map<String, dynamic>,
    Map<String, dynamic>> geojson() {
  final newHeaders = {..._headers};
  newHeaders['Accept'] = 'application/geo+json;';
  return ResponsePostgrestBuilder(_copyWithType(headers: newHeaders));
}