i have algolia and my index setup, but finding it ...
# prisma-whats-new
d
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"
oh dang do i query algolia directly? that kind of makes sense
n
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
then your index should include this on the top level:
Copy code
_geoloc: location {
  lat
  lng
}
👍 1
d
Yeah I had assumed the integration would expose some sort of query filtering that leveraged algolia. This is chill though! Thanks for the reply