You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given my (limited) understand of how the templating works I think this API would be the easiest to add, but it could also just be that entgql.OrderField is updated to accept multiple arguments or that you could pass multiple entgql.OrderFields (but that last one seems the most difficult to implement).
Motivation 馃敠
One should not be limited to ordering by only one field when ordering through an edge.
The text was updated successfully, but these errors were encountered:
henrywoody
changed the title
Support for multiple order field annotations on an edge
Support for multiple order fields through an edge
Apr 10, 2024
It would be great to have support for multiple order fields through a single edge.
Summary 馃挕
Say you have a schema like this:
And you want to be able to order by the author's first name or last name.
Could look like this:
Given my (limited) understand of how the templating works I think this API would be the easiest to add, but it could also just be that
entgql.OrderField
is updated to accept multiple arguments or that you could pass multipleentgql.OrderField
s (but that last one seems the most difficult to implement).Motivation 馃敠
One should not be limited to ordering by only one field when ordering through an edge.
The text was updated successfully, but these errors were encountered: