Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: adds geojson support for working with the PostGIS extension #721

Merged
merged 2 commits into from
Nov 21, 2023

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
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
8 checks passed
@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