reym
ProjectionsSchemaField

@geoSearch

Use the @geoSearch to enable geosearch on a field.

This directive requires the @searchable directive to be enabled on the projection. @searchable

Example

user.graphql
type User @upsertOn(...) @searchable {
    location: [Float!]! @geoSearch
    locations: [[Float!]!]! @geoSearch
}

In this case, the location and locations fields will be available for geosearch via typesense.

On this page