Skip to content

Conversation

encima
Copy link
Member

@encima encima commented Nov 21, 2023

What kind of change does this PR introduce?

Adds geojson support for returning PostGIS datatypes

What is the current behavior?

Currently, geojson is not supported.

What is the new behavior?

Adds a geojson method to pass the postgis content type and tell PostgREST to respond appropriately https://postgrest.org/en/stable/how-tos/working-with-postgresql-data-types.html#ww-postgis

Additional context

Enabled the PostGIS extension for the test cases also (mentioning here for search-ability in case it introduces issues down the line)

@dshukertjr dshukertjr self-requested a review November 21, 2023 12:10
Co-authored-by: Tyler <18113850+dshukertjr@users.noreply.github.com>
Copy link
Member

@dshukertjr dshukertjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dshukertjr dshukertjr merged commit 60a2515 into next Nov 21, 2023
@dshukertjr dshukertjr deleted the feat/geo branch November 21, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants