So has anyone had any luck modeling geojson/geometric objects with graphql and prisma? Trying work with `point`s and `polygon`s
t
tomhut
06/25/2018, 2:07 PM
I have a bit
z
zbarnes
06/25/2018, 2:09 PM
Hi @tomhut! Do you have a gist or something i could take a look at? This is totally kicking my but haha
t
tomhut
06/25/2018, 2:42 PM
What sort of thing are you trying to do? For what its worth im storing the geojson data on s3, sort of archived and then storing the data as a string encoded polyline in the DB https://github.com/mapbox/polyline
🙌 1
👍 1
💯 1
z
zbarnes
06/25/2018, 2:43 PM
oh wow! Didn't even know this was an option! totally changes everything. Thank you for that!
t
tomhut
06/25/2018, 3:22 PM
No worries! Polylines are awesome
tomhut
06/25/2018, 3:23 PM
Super small, you can save “higher res” version in the DB and if you need to send one over the network you can encode a less accurate one on the fly and send it out