Skip to content

PostgREST adds wrappers and quotations to GeoJSON output #2339

Answered by laurenceisla
tvogt asked this question in Q&A
Discussion options

You must be logged in to vote

Try using a FUNCTION instead of a VIEW

As Steve suggested, I created a PR in the docs that modifies the example from a VIEW to a FUNCTION in order to return a JSON object and not an Array. Here is the example if you need it: https://postgrest.org/en/latest/how-tos/working-with-postgresql-data-types.html#postgis

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@tvogt
Comment options

@steve-chavez
Comment options

@steve-chavez
Comment options

@tvogt
Comment options

@steve-chavez
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by steve-chavez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2337 on June 18, 2022 04:41.