Join Slack
Powered by
i have algolia and my index setup, but finding it ...
# prisma-whats-new
d
drk
04/19/2017, 3:40 AM
i have algolia and my index setup, but finding it difficult to nail down the query to use for something like "get all MyType w/ a location in this radius"
drk
04/19/2017, 3:42 AM
digging in to
https://github.com/graphcool-examples/algolia-brewery-example
currently
drk
04/19/2017, 4:00 AM
oh dang do i query algolia directly? that kind of makes sense
n
nilan
04/19/2017, 7:52 AM
yes, currently we don't have native geo queries support! The way it works is to store the location data as a Location model with
lng
and
lat
fields
nilan
04/19/2017, 7:52 AM
then your index should include this on the top level:
nilan
04/19/2017, 7:53 AM
Copy code
_geoloc: location { lat lng }
👍 1
d
drk
04/19/2017, 2:36 PM
Yeah I had assumed the integration would expose some sort of query filtering that leveraged algolia. This is chill though! Thanks for the reply
Open in Slack
Previous
Next