Skip to content

Allow graphql queries to orderBy subfields #16157

Closed Answered by brandonkelly
riekusdn asked this question in Ideas
Discussion options

You must be logged in to vote

Just made this possible for Craft 5.6 (a6c770d).

If you’d like to test it out, change your craftcms/cms requirement in composer.json to:

"craftcms/cms": "5.6.x-dev as 5.6.0-alpha",

and then run composer update.

Alternatively, you could create new Preparse fields that extract the start and end values into their own (hidden) custom fields, and order by those fields instead.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
site development 👩‍💻 features related to website/API development
2 participants