Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Order by related fields #95
It would be great to be able to order by "to-many" related fields as well (by the count of related items).
For example, to get a list of the top 10 most voted-for links (assuming
Currently, to get that list you'd have to query for every Link and then sort/slice it on the client, which is potentially a ton of overfetching.
1 similar comment
referenced this issue
Jun 1, 2018
Echoing what @PascalSenn said, but updating
This proposal also has nice nesting where the input type for
The only problem I still have with this proposal is that each object must only have 1 key-value pair, but there's no way in my mind to enforce that. If anyone else has a proposal that would address this concern, please let me know.
This continues to be an important feature for us. I'll update this issue when we have a concrete timeframe. See also this explanation for why we were unable to ship this feature in Q3 as planned.
@mcmar - I like how your proposal is more powerful than the originally proposed syntax. At the same time I am concerned about the added syntactic complexity compared to the original proposal.
@sorenbs If you're switching
Haha. Just noticed that you commented on this very issue in the graphql repo 2.5 years ago:
And more recent ones: graphql/graphql-spec#488 (comment)
I think an