graphile / crystal

🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
https://graphile.org/
Other
12.63k stars 572 forks source link

Using PostGIS with postgraphql #575

Closed amaury1093 closed 6 years ago

amaury1093 commented 7 years ago

Is this library compatible with PostGIS?

Running postgraphql@next, I can generate the graphql schema of a pg database with PostGIS installed.

However, I cannot manage to find how to get for example the result of this query via GraphQL:

SELECT ST_AsGeoJSON(polygon) from territories;

assuming I have a table called territories with a column named polygon.