Geo location

Not sure why you’d want to re-define Point. Maybe I’m not grokking what you’re asking.

Do you really need to do this? Maybe let’s back up and discuss how you’re looking to search. It seems that one query you’d like to make is: “what Brands are near a particular location?”. If so:

query {
  queryBrand (filter: { location_point: { near: { coordinate: { latitude: 37.771935, longitude: -122.469829 }, distance: 1000 } } }) {
    id
  }
}

Dgraph auto-generates a GraphQL API for your schema, when it sees a Point predicate within a type, it adds the special near, within, etc fields in the filter type associated with the object’s query endpoint.

Make sense?