Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort by distance #1461

Closed
nkovacic opened this issue Feb 10, 2020 · 1 comment
Closed

Sort by distance #1461

nkovacic opened this issue Feb 10, 2020 · 1 comment
Assignees
Labels
Area: Spatial Issue is related to spatial types 🎉 enhancement New feature or request 🙋 good first issue Good for newcomers 🌶️ hot chocolate ⌛ stale Nothing happened with this issue in quite a while
Milestone

Comments

@nkovacic
Copy link

nkovacic commented Feb 10, 2020

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

@michaelstaib michaelstaib added this to the HC-11.0.0 milestone Feb 10, 2020
@michaelstaib michaelstaib self-assigned this Feb 13, 2020
@michaelstaib michaelstaib modified the milestones: HC-11.x.x, Backlog Mar 31, 2021
@michaelstaib michaelstaib added the Area: Spatial Issue is related to spatial types label Dec 16, 2021
@PascalSenn PascalSenn added the 🙋 good first issue Good for newcomers label Mar 16, 2022
@stale
Copy link

stale bot commented May 15, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the ⌛ stale Nothing happened with this issue in quite a while label May 15, 2022
@stale stale bot closed this as completed May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Spatial Issue is related to spatial types 🎉 enhancement New feature or request 🙋 good first issue Good for newcomers 🌶️ hot chocolate ⌛ stale Nothing happened with this issue in quite a while
Projects
None yet
Development

No branches or pull requests

4 participants