Skip to content

Sort by distance #1461

@nkovacic

Description

@nkovacic

Is your feature request related to a problem? Please describe.
Entity Framework supports sorting by distance but HotChcolate currently does not have an option to pass an input to sort function.

Describe the solution you'd like
As proposed on Slack, sort should be extended with custom functions which can support complex inputs

location_distance: {
  sortType: ASC | DESC,
  GEOLOCATION: GeoLocationInput
  DISTANCE: DistanceLocationInput
}

Describe alternatives you've considered
A quick solution would be to add just add string support instead of SortOperationKind as shown here

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions